From 77a9c7ae10a0fd854ad585ba9c71908c11098747 Mon Sep 17 00:00:00 2001 From: Gerhard Rieger Date: Sun, 12 Jan 2014 21:07:38 +0100 Subject: [PATCH] performed changes for Fedora release 19 --- CHANGES | 3 +++ procan-cdefs.c | 4 ++-- test.sh | 54 ++++++++++++++------------------------------------ 3 files changed, 20 insertions(+), 41 deletions(-) diff --git a/CHANGES b/CHANGES index 5592581..3018f32 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,7 @@ +porting: + Performed changes for Fedora release 19 + ####################### V 1.7.2.3: security: diff --git a/procan-cdefs.c b/procan-cdefs.c index f7442f9..9e401c7 100644 --- a/procan-cdefs.c +++ b/procan-cdefs.c @@ -1,5 +1,5 @@ /* source: procan-cdefs.c */ -/* Copyright Gerhard Rieger 2008 */ +/* Copyright Gerhard Rieger */ /* Published under the GNU General Public License V.2, see file COPYING */ /* a function that prints compile time parameters */ @@ -20,7 +20,7 @@ int procan_cdefs(FILE *outfile) { fprintf(outfile, "#define FD_SETSIZE %u\n", FD_SETSIZE); #endif #ifdef NFDBITS - fprintf(outfile, "#define NFDBITS "F_Zu"\n", NFDBITS); + fprintf(outfile, "#define NFDBITS %u\n", (unsigned int)NFDBITS); #endif #ifdef O_RDONLY fprintf(outfile, "#define O_RDONLY %u\n", O_RDONLY); diff --git a/test.sh b/test.sh index 33a3b66..9bf70ee 100755 --- a/test.sh +++ b/test.sh @@ -141,7 +141,8 @@ esac # for some tests we need a second local IPv4 address case "$UNAME" in Linux) - BROADCASTIF=eth0 + BROADCASTIF=$(ip r get 8.8.8.8 |grep ' dev ' |sed 's/.*\/dev/null 2>"${te}0" &