]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix compile.
authorRoy Marples <roy@marples.name>
Tue, 19 Feb 2008 17:43:39 +0000 (17:43 +0000)
committerRoy Marples <roy@marples.name>
Tue, 19 Feb 2008 17:43:39 +0000 (17:43 +0000)
configure.c
mk/cc.mk

index b5add7fe06cc3f5340cd41252467a4dab8b8bc1c..e23735582576be70837c470d771b8a0b35ab72d2 100644 (file)
@@ -92,7 +92,7 @@ static int exec_cmd (const char *cmd, const char *args, ...)
        va_list va;
        char **argv;
        int n = 1;
-       int ret;
+       int ret = 0;
        pid_t pid;
        sigset_t full;
        sigset_t old;
index 4fcdcfcb5d3018ab613c8b2a5c9c8286f3503232..a166971697eac0cd5f155770ff14dc3fb834d36a 100644 (file)
--- a/mk/cc.mk
+++ b/mk/cc.mk
@@ -7,7 +7,7 @@ CFLAGS?=        -O2 -pipe
 CSTD?=         c99
 _CSTD_SH=      if test -n "${CSTD}"; then echo "-std=${CSTD}"; else echo ""; fi
 _CSTD!=                ${_CSTD_SH}
-CFLAGS+=       ${_CSTD}$(shell _CSTD_SH)
+CFLAGS+=       ${_CSTD}$(shell ${_CSTD_SH})
 
 # GNU Make way of detecting gcc flags we can use
 check_gcc=$(shell if ${CC} $(1) -S -o /dev/null -xc /dev/null >/dev/null 2>&1; \