From: Roy Marples Date: Wed, 27 Jan 2021 13:31:51 +0000 (+0000) Subject: Whitespace X-Git-Tag: v9.4.1~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de92f37d6875a484a1bd65b8062095752aa3606b;p=thirdparty%2Fdhcpcd.git Whitespace --- diff --git a/configure b/configure index 72b133c1..7ac2abf6 100755 --- a/configure +++ b/configure @@ -107,7 +107,7 @@ for x do --with-udev) DEV=yes; UDEV=yes;; --without-udev) UDEV=no;; --with-poll) POLL="$var";; - --sanitize) SANITIZEADDRESS="yes";; + --sanitise|--sanitize) SANITIZEADDRESS="yes";; --serviceexists) SERVICEEXISTS=$var;; --servicecmd) SERVICECMD=$var;; --servicestatus) SERVICESTATUS=$var;; @@ -159,8 +159,8 @@ Fine tuning of the installation directories: System types: --build=BUILD configure for building on BUILD [guessed] - --host=HOST build programs to run on HOST [BUILD] - --target=TARGET configure for building compilers for TARGET [HOST] + --host=HOST build programs to run on HOST [BUILD] + --target=TARGET configure for building compilers for TARGET [HOST] Optional Features: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) @@ -170,9 +170,9 @@ Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a - nonstandard directory + nonstandard directory CPPFLAGS C/C++ preprocessor flags, e.g. -I if you have - headers in a nonstandard directory + headers in a nonstandard directory CPP C preprocessor PKG_CONFIG pkg-config executable @@ -236,7 +236,7 @@ if [ -z "$OS" ]; then fi fi - # Work with cpu-kernel-os, ie Debian + # Work with cpu-kernel-os, ie Debian case "$VENDOR" in linux*|kfreebsd*) OS=$VENDOR; VENDOR= ;; esac @@ -376,10 +376,6 @@ if [ "$STATIC" = yes ]; then echo "LDFLAGS+= -static" >>$CONFIG_MK fi -if [ -z "$DEBUG" -a -f .fslckout ]; then - printf "Found fossil checkout ... " - DEBUG=yes -fi if [ -z "$DEBUG" -a -d .git ]; then printf "Found git checkout ... " DEBUG=yes @@ -429,6 +425,7 @@ EOF if $CC -fsanitize=address _test.c -o _test 2>&3; then echo "yes" echo "CFLAGS+= -fsanitize=address" >>$CONFIG_MK + echo "CFLAGS+= -fno-omit-frame-pointer" >>$CONFIG_MK echo "LDFLAGS+= -fsanitize=address" >>$CONFIG_MK else echo "no" @@ -643,19 +640,19 @@ EOF rm -f _capsicum.c _capsicum printf "Testing for pledge ... " - cat <_pledge.c + cat <_pledge.c #include int main(void) { - return pledge("stdio", NULL); + return pledge("stdio", NULL); } EOF - if $XCC _pledge.c -o _pledge 2>&3; then - echo "yes" - echo "#define HAVE_PLEDGE" >>$CONFIG_H - else - echo "no" - fi - rm -f _pledge.c _pledge + if $XCC _pledge.c -o _pledge 2>&3; then + echo "yes" + echo "#define HAVE_PLEDGE" >>$CONFIG_H + else + echo "no" + fi + rm -f _pledge.c _pledge fi # This block needs to be after the compiler test due to embedded quotes. @@ -837,7 +834,7 @@ elif $XCC _inet_ntoa.c -lnsl -o _inet_ntoa 2>&3; then echo "LDADD+= -lnsl" >>$CONFIG_MK elif $XCC _inet_ntoa.c -lsocket -o _inet_ntoa 2>&3; then echo "yes (-lsocket)" - echo "LDADD+= -lsocket" >>$CONFIG_MK + echo "LDADD+= -lsocket" >>$CONFIG_MK else echo "no" echo "libc support for inet_ntoa is required - aborting" >&2 @@ -1772,12 +1769,12 @@ echo " SBINDIR = $SBINDIR" echo " LIBDIR = $LIBDIR" echo " LIBEXECDIR = $LIBEXECDIR" echo " DBDIR = $DBDIR" -echo " RUNDIR = $RUNDIR" +echo " RUNDIR = $RUNDIR" echo " MANDIR = $MANDIR" echo " DATADIR = $DATADIR" echo " HOOKSCRIPTS = $HOOKS" echo " EGHOOKSCRIPTS = $EGHOOKS" -echo " STATUSARG = $STATUSARG" +echo " STATUSARG = $STATUSARG" if [ "$PRIVSEP" = yes ]; then echo " PRIVSEPUSER = $PRIVSEP_USER" fi diff --git a/src/privsep.h b/src/privsep.h index 87c84eb9..351e7e5f 100644 --- a/src/privsep.h +++ b/src/privsep.h @@ -85,7 +85,7 @@ sizeof(struct ps_msghdr) + \ sizeof(struct msghdr) + \ CMSG_SPACE(sizeof(struct in6_pktinfo) + \ - sizeof(int))) + sizeof(int))) /* Handy macro to work out if in the privsep engine or not. */ #define IN_PRIVSEP(ctx) \