summaryrefslogtreecommitdiff
path: root/benchmarks/nettest/patches
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-06-22 15:00:51 +0000
committerjoerg <joerg@pkgsrc.org>2006-06-22 15:00:51 +0000
commit08eaa3510a4aed4b9b04a3602a50a6b6d0447c00 (patch)
tree679e5c97aa8c765221113af45217560c22782ece /benchmarks/nettest/patches
parent8f940b6e2fb3f4e63b7d88e94dd3bc4a40bad97d (diff)
downloadpkgsrc-08eaa3510a4aed4b9b04a3602a50a6b6d0447c00.tar.gz
Rename daemon to is_daemon, since daemon is declared already in stdlib.h.
Diffstat (limited to 'benchmarks/nettest/patches')
-rw-r--r--benchmarks/nettest/patches/patch-ad44
1 files changed, 41 insertions, 3 deletions
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);