=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rup/rup.c,v retrieving revision 1.4 retrieving revision 1.5 diff -c -r1.4 -r1.5 *** src/usr.bin/rup/rup.c 1996/09/04 23:43:57 1.4 --- src/usr.bin/rup/rup.c 1996/12/10 19:00:03 1.5 *************** *** 1,4 **** ! /* $OpenBSD: rup.c,v 1.4 1996/09/04 23:43:57 deraadt Exp $ */ /*- * Copyright (c) 1993, John Brezak --- 1,4 ---- ! /* $OpenBSD: rup.c,v 1.5 1996/12/10 19:00:03 deraadt Exp $ */ /*- * Copyright (c) 1993, John Brezak *************** *** 34,40 **** */ #ifndef lint ! static char rcsid[] = "$OpenBSD: rup.c,v 1.4 1996/09/04 23:43:57 deraadt Exp $"; #endif /* not lint */ #include --- 34,40 ---- */ #ifndef lint ! static char rcsid[] = "$OpenBSD: rup.c,v 1.5 1996/12/10 19:00:03 deraadt Exp $"; #endif /* not lint */ #include *************** *** 238,254 **** CLIENT *rstat_clnt; statstime host_stat; static struct timeval timeout = {25, 0}; rstat_clnt = clnt_create(host, RSTATPROG, RSTATVERS_TIME, "udp"); if (rstat_clnt == NULL) { ! warnx("%s", clnt_spcreateerror(host)); return; } bzero((char *)&host_stat, sizeof(host_stat)); if (clnt_call(rstat_clnt, RSTATPROC_STATS, xdr_void, NULL, xdr_statstime, &host_stat, timeout) != RPC_SUCCESS) { ! warnx("%s", clnt_sperror(rstat_clnt, host)); return; } --- 238,257 ---- CLIENT *rstat_clnt; statstime host_stat; static struct timeval timeout = {25, 0}; + extern char *__progname; rstat_clnt = clnt_create(host, RSTATPROG, RSTATVERS_TIME, "udp"); if (rstat_clnt == NULL) { ! fprintf(stderr, "%s: %s", __progname, ! clnt_spcreateerror(host)); return; } bzero((char *)&host_stat, sizeof(host_stat)); if (clnt_call(rstat_clnt, RSTATPROC_STATS, xdr_void, NULL, xdr_statstime, &host_stat, timeout) != RPC_SUCCESS) { ! fprintf(stderr, "%s: %s", __progname, ! clnt_sperror(rstat_clnt, host)); return; } *************** *** 261,266 **** --- 264,270 ---- { statstime host_stat; enum clnt_stat clnt_stat; + extern char *__progname; size_t i; if (sort_type != SORT_NONE) { *************** *** 271,277 **** clnt_stat = clnt_broadcast(RSTATPROG, RSTATVERS_TIME, RSTATPROC_STATS, xdr_void, NULL, xdr_statstime, &host_stat, rstat_reply); if (clnt_stat != RPC_SUCCESS && clnt_stat != RPC_TIMEDOUT) { ! warnx("%s", clnt_sperrno(clnt_stat)); exit(1); } --- 275,281 ---- clnt_stat = clnt_broadcast(RSTATPROG, RSTATVERS_TIME, RSTATPROC_STATS, xdr_void, NULL, xdr_statstime, &host_stat, rstat_reply); if (clnt_stat != RPC_SUCCESS && clnt_stat != RPC_TIMEDOUT) { ! fprintf(stderr, "%s: %s", __progname, clnt_sperrno(clnt_stat)); exit(1); }