head 1.1; access; symbols OPENPKG_E1_MP:1.1 OPENPKG_E1_MP_HEAD:1.1; locks; strict; comment @# @; 1.1 date 2006.12.29.15.40.51; author rse; state Exp; branches; next ; commitid wOoyuFX1EGqHUq0s; desc @@ 1.1 log @new package: peep 0.5.7 (Network/File/StdIO Connectivity Utility) @ text @Index: peep-0.5.7.c --- peep-0.5.7.c.orig 2002-06-26 21:30:17 +0200 +++ peep-0.5.7.c 2006-12-29 16:34:27 +0100 @@@@ -478,9 +478,11 @@@@ setsockopt (con[cons]->lsock, SOL_SOCKET, SO_BROADCAST, (const void *) &k, sizeof(k)); +#if defined(SOL_TCP) k=1024; setsockopt (con[cons]->lsock, SOL_TCP, TCP_MAXSEG, (const void *) &k, sizeof(k)); +#endif } udp_flag=0; con[cons]->listen_flag = 1; @@@@ -1527,7 +1529,7 @@@@ unsigned long bw; bw = (bytes-oldbytes)/interval; - fprintf(stderr, "%d: %lu = (%lu - %lu)/%d\n", getpid(), bw, bytes, oldbytes, interval); + fprintf(stderr, "%d: %lu = (%lu - %lu)/%d\n", (int)getpid(), bw, bytes, oldbytes, interval); oldbytes = bytes; alarm(interval); @@@@ -1536,7 +1538,7 @@@@ } void peep_exit(int ret) { - if (report_flag) fprintf(stderr, "%d: bytes written: %lu\n", getpid(), bytes); + if (report_flag) fprintf(stderr, "%d: bytes written: %lu\n", (int)getpid(), bytes); exit(ret); } @