1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/net/apinger/files/patch-src_main.c
Michael Landin 1a670bfca1 - Fix problem with 16bit process id numbers
PR:		ports/125192
Submitted by:	Seth Mos <seth.mos@xs4all.nl>
2008-07-10 20:43:55 +00:00

21 lines
410 B
C

--- 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);