From e3c060d9b1732ba23d41c2415a498a4fe34ac38e Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Fri, 21 Oct 2005 22:21:02 +0000 Subject: [PATCH] Migrated to libSystem --- src/Makefile | 2 +- src/configure.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/Makefile b/src/Makefile index 6131d25..2c09b0c 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,7 +1,7 @@ TARGETS = configure CFLAGSF = -W -Wall -ansi CFLAGS = -g -LDFLAGSF= -lutils +LDFLAGSF= -lSystem CC = cc AR = ar rc RANLIB = ranlib diff --git a/src/configure.c b/src/configure.c index edefe5e..25ceebb 100644 --- a/src/configure.c +++ b/src/configure.c @@ -9,9 +9,7 @@ /* configure */ /* PRE - * POST specified directory has been setup - * 2 chdir() failed - * else other errors occured */ + * POST specified directory has been setup */ static int _configure_config(Config * config); static int _configure(char const * directory) { @@ -25,12 +23,12 @@ static int _configure(char const * directory) return 2; } if((config = config_new()) == NULL) - return 3; + return 2; if(config_load(config, "project.conf") == 0) res = _configure_config(config); else { - res = 3; + res = 2; fprintf(stderr, "%s%s%s", "configure: ", directory, ": Could not open project file\n"); }