diff options
author | mich <mich@FreeBSD.org> | 2008-07-11 04:43:55 +0800 |
---|---|---|
committer | mich <mich@FreeBSD.org> | 2008-07-11 04:43:55 +0800 |
commit | c37cb6bd257e3156528ed699c9f23a2a15f1b23d (patch) | |
tree | f019310ff8651533f55681c6e74762cf90a383d9 | |
parent | c80df57ca99e9d7e8bb5ed6b4f3862b0b16dfb20 (diff) | |
download | freebsd-ports-gnome-c37cb6bd257e3156528ed699c9f23a2a15f1b23d.tar.gz freebsd-ports-gnome-c37cb6bd257e3156528ed699c9f23a2a15f1b23d.tar.zst freebsd-ports-gnome-c37cb6bd257e3156528ed699c9f23a2a15f1b23d.zip |
- Fix problem with 16bit process id numbers
PR: ports/125192
Submitted by: Seth Mos <seth.mos@xs4all.nl>
-rw-r--r-- | net/apinger/files/patch-src_apinger.h | 11 | ||||
-rw-r--r-- | net/apinger/files/patch-src_main.c | 20 |
2 files changed, 31 insertions, 0 deletions
diff --git a/net/apinger/files/patch-src_apinger.h b/net/apinger/files/patch-src_apinger.h new file mode 100644 index 000000000000..417fa0908be2 --- /dev/null +++ b/net/apinger/files/patch-src_apinger.h @@ -0,0 +1,11 @@ +--- src/apinger.h.old 2008-07-10 22:38:08.000000000 +0200 ++++ src/apinger.h 2008-07-10 22:38:29.000000000 +0200 +@@ -119,7 +119,7 @@ + + extern int icmp_sock; + extern int icmp6_sock; +-extern int ident; ++extern uint16_t ident; + + extern struct timeval next_probe; + diff --git a/net/apinger/files/patch-src_main.c b/net/apinger/files/patch-src_main.c new file mode 100644 index 000000000000..7902e4a0b53d --- /dev/null +++ b/net/apinger/files/patch-src_main.c @@ -0,0 +1,20 @@ +--- src/main.c.old 2008-07-10 22:36:21.000000000 +0200 ++++ src/main.c 2008-07-10 22:36:53.000000000 +0200 +@@ -96,7 +96,7 @@ + + int icmp_sock; + int icmp6_sock; +-int ident; ++uint16_t ident; + + struct timeval next_probe={0,0}; + +@@ -277,7 +277,7 @@ + return 1; + } + +- ident=getpid(); ++ ident=getpid() & 0xFFFF; + signal(SIGTERM,signal_handler); + signal(SIGINT,signal_handler); + signal(SIGHUP,signal_handler); |