diff options
author | joerg <joerg> | 2006-06-22 15:00:51 +0000 |
---|---|---|
committer | joerg <joerg> | 2006-06-22 15:00:51 +0000 |
commit | 0c972a5f47b1355789f3081f18197aa2b5c0e627 (patch) | |
tree | 679e5c97aa8c765221113af45217560c22782ece /benchmarks | |
parent | 111e788de535f1e40456ec03c514a78ffe651dcb (diff) | |
download | pkgsrc-0c972a5f47b1355789f3081f18197aa2b5c0e627.tar.gz |
Rename daemon to is_daemon, since daemon is declared already in stdlib.h.
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/nettest/distinfo | 4 | ||||
-rw-r--r-- | benchmarks/nettest/patches/patch-ad | 44 |
2 files changed, 43 insertions, 5 deletions
diff --git a/benchmarks/nettest/distinfo b/benchmarks/nettest/distinfo index 3fbb1d218f3..564316f97ab 100644 --- a/benchmarks/nettest/distinfo +++ b/benchmarks/nettest/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.7 2006/06/21 14:27:28 minskim Exp $ +$NetBSD: distinfo,v 1.8 2006/06/22 15:00:51 joerg Exp $ SHA1 (nettest.92.11.09.tar.Z) = 745408751115784f8f5dc63b16428eb1404d6c5e RMD160 (nettest.92.11.09.tar.Z) = dadf2688c5d57dc019df7267f35089e70a92bd79 @@ -6,4 +6,4 @@ Size (nettest.92.11.09.tar.Z) = 35068 bytes SHA1 (patch-aa) = 17f5b23a2813e46fa710e6fd810d5c6e7d9cb7b4 SHA1 (patch-ab) = e96227451fce253cd77491cfa2214fa49651af15 SHA1 (patch-ac) = 7c6f6abf3012c81d8898c4ef21936e0e89d108dd -SHA1 (patch-ad) = bf34d0ccd2ed7eda77ff728d56513b7602ddee8a +SHA1 (patch-ad) = bbae628cc8cb7a38f89f912d8682dc100fceeabc diff --git a/benchmarks/nettest/patches/patch-ad b/benchmarks/nettest/patches/patch-ad index fe7dcaf99b3..9c9cca8b44b 100644 --- a/benchmarks/nettest/patches/patch-ad +++ b/benchmarks/nettest/patches/patch-ad @@ -1,4 +1,4 @@ -$NetBSD: patch-ad,v 1.5 2006/06/21 14:27:28 minskim Exp $ +$NetBSD: patch-ad,v 1.6 2006/06/22 15:00:51 joerg Exp $ --- nettestd.c.orig 1992-11-05 21:52:58.000000000 +0000 +++ nettestd.c @@ -10,6 +10,15 @@ $NetBSD: patch-ad,v 1.5 2006/06/21 14:27:28 minskim Exp $ #ifdef WAIT3CODE #include <sys/wait.h> #endif +@@ -79,7 +80,7 @@ int ipoptions = 0; + int mesghdr = 0; + #define debug(x) if(dflag>1)fprintf x + int verbose; +-int daemon = 0; /* are we running in daemon mode? */ ++int is_daemon = 0; /* are we running in daemon mode? */ + + #ifdef TCP_WINSHIFT + int winshift; @@ -107,7 +108,12 @@ union { } name; int namesize; @@ -24,10 +33,30 @@ $NetBSD: patch-ad,v 1.5 2006/06/21 14:27:28 minskim Exp $ int (*rfunc)() = read; main(argc, argv) -@@ -271,7 +277,11 @@ char **argv; +@@ -139,7 +145,7 @@ char **argv; + "-v flag ignored when -b flag is used\n"); + verbose = 0; + } +- daemon++; ++ is_daemon++; + break; + case 'd': /* turn on socket level debugging */ + ++dflag; +@@ -204,7 +210,7 @@ char **argv; + #endif + + case 'v': /* print out errors in sequenced data */ +- if (daemon) { ++ if (is_daemon) { + fprintf(stderr, + "-v flag ignored when -b flag is used\n"); + verbose = 0; +@@ -270,8 +276,12 @@ char **argv; + # endif # endif #endif - if (daemon) { +- if (daemon) { ++ if (is_daemon) { +#ifdef NONVOID_SETPGRP + if (setpgrp(0, getpid()) < 0) +#else @@ -97,3 +126,12 @@ $NetBSD: patch-ad,v 1.5 2006/06/21 14:27:28 minskim Exp $ &namesize); } if (t < 0) { +@@ -758,7 +769,7 @@ usage() + error(string) + char *string; + { +- if (daemon) ++ if (is_daemon) + syslog(LOG_ERR, "nettestd: %s %m", string); + else + perror(string); |