openbsd-ports/net/hping/patches/patch-rtt_c
naddy d4bbf8c892 Update to 2.0.0rc2 from Chris Kuethe <ckuethe@ualberta.ca>:
"I've been running this for quite some time now, and it plays much
nicer with machines with multiple interfaces that come and go.
Also, the traceroute mode seems a lot more accurate."

LP64 fixes from yours truly.

ok maintainer
2004-04-21 00:16:12 +00:00

20 lines
996 B
Plaintext

$OpenBSD: patch-rtt_c,v 1.1 2004/04/21 00:16:12 naddy Exp $
--- rtt.c.orig 2004-04-20 22:24:23.000000000 +0200
+++ rtt.c 2004-04-20 22:25:15.000000000 +0200
@@ -72,11 +72,11 @@ int rtt(int *seqp, int recvport, float *
printf("\n\nSANITY CHECK in rtt.c FAILED!\n");
printf("- seqnum = %d\n", *seqp);
printf("- status = %d\n", status);
- printf("- get_usec() = %ld\n", get_usec());
- printf("- delaytable.usec = %ld\n", delaytable[tablepos].usec);
+ printf("- get_usec() = %ld\n", (long)get_usec());
+ printf("- delaytable.usec = %ld\n", (long)delaytable[tablepos].usec);
printf("- usec_delay = %ld\n", usec_delay);
- printf("- time(NULL) = %ld\n", time(NULL));
- printf("- delaytable.sec = %ld\n", delaytable[tablepos].sec);
+ printf("- time(NULL) = %ld\n", (long)time(NULL));
+ printf("- delaytable.sec = %ld\n", (long)delaytable[tablepos].sec);
printf("- sec_delay = %ld\n", sec_delay);
printf("- ms_delay = %f\n", *ms_delay);
printf("END SANITY CHECK REPORT\n\n");