about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/Makefile.am8
-rw-r--r--src/nix.cc4
2 files changed, 5 insertions, 7 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index afe34ba5ff5d..4d8cd4229e06 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,4 +1,4 @@
-bin_PROGRAMS = nix # fix
+bin_PROGRAMS = nix
 check_PROGRAMS = test
 
 AM_CXXFLAGS = -DSYSTEM=\"@host@\" -Wall -I..
@@ -6,9 +6,6 @@ AM_CXXFLAGS = -DSYSTEM=\"@host@\" -Wall -I..
 nix_SOURCES = nix.cc
 nix_LDADD = libnix.a -ldb_cxx-4 -lATerm
 
-#fix_SOURCES = fix.cc util.cc hash.cc md5.c
-#fix_LDADD = -lATerm
-
 TESTS = test
 
 test_SOURCES = test.cc
@@ -16,7 +13,8 @@ test_LDADD = libnix.a -ldb_cxx-4 -lATerm
 
 noinst_LIBRARIES = libnix.a
 
-libnix_a_SOURCES = util.cc hash.cc archive.cc md5.c eval.cc values.cc globals.cc db.cc
+libnix_a_SOURCES = util.cc hash.cc archive.cc md5.c \
+ eval.cc values.cc globals.cc db.cc
 
 install-data-local:
 	$(INSTALL) -d $(localstatedir)/nix
diff --git a/src/nix.cc b/src/nix.cc
index 9b21f0379cc5..fe9ab453b239 100644
--- a/src/nix.cc
+++ b/src/nix.cc
@@ -60,7 +60,7 @@ static ArgType argType = atpUnknown;
 
 /* Parse the `-f' / `-h' / `-n' flags, i.e., the type of value
    arguments.  These flags are deleted from the referenced vector. */
-void getArgType(Strings & flags)
+static void getArgType(Strings & flags)
 {
     for (Strings::iterator it = flags.begin();
          it != flags.end(); )
@@ -215,7 +215,7 @@ static void opInit(Strings opFlags, Strings opArgs)
 
 /* Initialize, process arguments, and dispatch to the right
    operation. */
-void run(int argc, char * * argv)
+static void run(int argc, char * * argv)
 {
     /* Setup Nix paths. */
     nixValues = NIX_VALUES_DIR;