ip/measure updated to the 4th edition, just because I was curious. not sure if it should be patched or just deleted. -Steve Reference: /n/sources/patch/saved/ip-measure Date: Mon Jan 25 13:30:00 CET 2010 Signed-off-by: steve@quintile.net --- /sys/src/cmd/ip/measure.c Mon Jan 25 13:29:42 2010 +++ /sys/src/cmd/ip/measure.c Mon Jan 25 13:29:40 2010 @@ -62,9 +62,9 @@ void error(char *s) { - char buf[ERRLEN]; + char buf[ERRMAX]; - errstr(buf); + errstr(buf, sizeof(buf)); fprint(2, "snoopy: %s %s\n", buf, s); exits("death"); } @@ -72,16 +72,16 @@ void warning(char *s) { - char buf[ERRLEN]; + char buf[ERRMAX]; - errstr(buf); + errstr(buf, sizeof(buf)); fprint(2, "snoopy: %s %s\n", buf, s); } void printproto(int p) { - print("\t%d(%d %d %d %d)", p, protoin[p], protopin[p], protoout[p], protopout[p]); + print("\t%d(%lud %lud %lud %lud)", p, protoin[p], protopin[p], protoout[p], protopout[p]); } void @@ -118,8 +118,8 @@ delta = 5*60*1000; parseether(target, argv[1]); - fmtinstall('E', eipconv); - fmtinstall('I', eipconv); + fmtinstall('E', eipfmt); + fmtinstall('I', eipfmt); snprint(buf, sizeof(buf), "%s!-2", argv[0]); fd = dial(buf, 0, 0, &cfd); @@ -175,7 +175,7 @@ } } if(ts - start >= delta){ - print("%8.8d %d", time(0), ts - start); + print("%8.8ld %ld", time(0), ts - start); printproto(0); printproto(IP_MBONEPROTO); printproto(IP_UDPPROTO);