diff -dru netdate/netdate.c netdate.fjo/netdate.c --- netdate/netdate.c Sun Nov 21 15:49:36 1999 +++ netdate.fjo/netdate.c Fri Apr 18 23:34:00 2003 @@ -63,6 +63,7 @@ #define WTMP WTMP_FILE #endif +#define timerclear(tvp) ((tvp)->tv_sec = (tvp)->tv_usec = 0) char *defaultproto = "udp"; /* difference between 1900 (RFC868) and 1970 (UNIX) base times */ @@ -129,13 +130,12 @@ void main (int argc, char **argv) { - extern char *rindex(); struct timehost *mungediffs(); register struct timehost *thishost; int hostargs = 0; - if ((whoami = rindex(*argv, '/')) != NULL) + if ((whoami = strchr(*argv, '/')) != NULL) whoami++; else whoami = *argv;