ports/net/apinger/files/patch-src_main.c
Michael Landin 29029b1826 apinger cleanup
- Add DOCS option, enabled by default
- Move docs from pkg-plist to PORTDOCS
- Use IPV6_CONFIGURE_ENABLE knob
- Make rclint happy
- Regenerate patches with make makepatch
- Add @sample to apinger.conf
- Bump PORTREVISION due to rc script changei

PR:		ports/204465
Submitted by:	garga
Sponsored by:	Rubicon Communications (Netgate)
2015-11-11 12:59:48 +00:00

20 lines
423 B
C

--- src/main.c.orig 2003-03-26 11:27:47 UTC
+++ src/main.c
@@ -96,7 +96,7 @@ char *config_file=CONFIG;
int icmp_sock;
int icmp6_sock;
-int ident;
+uint16_t ident;
struct timeval next_probe={0,0};
@@ -277,7 +277,7 @@ char *graph_location="/apinger/";
return 1;
}
- ident=getpid();
+ ident=getpid() & 0xFFFF;
signal(SIGTERM,signal_handler);
signal(SIGINT,signal_handler);
signal(SIGHUP,signal_handler);