=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rup/rup.c,v retrieving revision 1.17 retrieving revision 1.18 diff -c -r1.17 -r1.18 *** src/usr.bin/rup/rup.c 2003/06/10 22:20:50 1.17 --- src/usr.bin/rup/rup.c 2003/08/04 17:06:45 1.18 *************** *** 1,4 **** ! /* $OpenBSD: rup.c,v 1.17 2003/06/10 22:20:50 deraadt Exp $ */ /*- * Copyright (c) 1993, John Brezak --- 1,4 ---- ! /* $OpenBSD: rup.c,v 1.18 2003/08/04 17:06:45 deraadt Exp $ */ /*- * Copyright (c) 1993, John Brezak *************** *** 34,40 **** */ #ifndef lint ! static char rcsid[] = "$OpenBSD: rup.c,v 1.17 2003/06/10 22:20:50 deraadt Exp $"; #endif /* not lint */ #include --- 34,40 ---- */ #ifndef lint ! static char rcsid[] = "$OpenBSD: rup.c,v 1.18 2003/08/04 17:06:45 deraadt Exp $"; #endif /* not lint */ #include *************** *** 65,71 **** void usage(void); int print_rup_data(char *, statstime *host_stat); ! int search_host(struct in_addr addr) { struct host_list *hp; --- 65,71 ---- void usage(void); int print_rup_data(char *, statstime *host_stat); ! static int search_host(struct in_addr addr) { struct host_list *hp; *************** *** 80,86 **** return(0); } ! void remember_host(struct in_addr addr) { struct host_list *hp; --- 80,86 ---- return(0); } ! static void remember_host(struct in_addr addr) { struct host_list *hp; *************** *** 111,117 **** }; enum sort_type sort_type; ! int compare(const void *v1, const void *v2) { const struct rup_data *d1 = v1; --- 111,117 ---- }; enum sort_type sort_type; ! static int compare(const void *v1, const void *v2) { const struct rup_data *d1 = v1; *************** *** 132,138 **** } } ! void remember_rup_data(char *host, struct statstime *st) { if (rup_data_idx >= rup_data_max) { --- 132,138 ---- } } ! static void remember_rup_data(char *host, struct statstime *st) { if (rup_data_idx >= rup_data_max) { *************** *** 151,157 **** } ! int rstat_reply(char *replyp, struct sockaddr_in *raddrp) { struct hostent *hp; --- 151,157 ---- } ! static int rstat_reply(char *replyp, struct sockaddr_in *raddrp) { struct hostent *hp; *************** *** 235,241 **** } ! void onehost(char *host) { CLIENT *rstat_clnt; --- 235,241 ---- } ! static void onehost(char *host) { CLIENT *rstat_clnt; *************** *** 263,269 **** clnt_destroy(rstat_clnt); } ! void allhosts(void) { statstime host_stat; --- 263,269 ---- clnt_destroy(rstat_clnt); } ! static void allhosts(void) { statstime host_stat;