summaryrefslogtreecommitdiff
path: root/usr.bin/rup
diff options
context:
space:
mode:
authorjdolecek <jdolecek@NetBSD.org>2000-03-08 12:10:28 +0000
committerjdolecek <jdolecek@NetBSD.org>2000-03-08 12:10:28 +0000
commit7bcd049d3105d5f24dc080193cf96284e15aada4 (patch)
treecd31be0b59668c6362753418f580e89b7ea09880 /usr.bin/rup
parentb1e34812e4ea8fdca182c7e63738217603cbc25e (diff)
Remove spurious ^L, as per bin/9574 by Thilo Manske.
While here, const poison a little.
Diffstat (limited to 'usr.bin/rup')
-rw-r--r--usr.bin/rup/rup.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/usr.bin/rup/rup.c b/usr.bin/rup/rup.c
index c8ad6296154..501940cfb4b 100644
--- a/usr.bin/rup/rup.c
+++ b/usr.bin/rup/rup.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rup.c,v 1.18 1999/07/30 01:29:30 hubertf Exp $ */
+/* $NetBSD: rup.c,v 1.19 2000/03/08 12:10:28 jdolecek Exp $ */
/*-
* Copyright (c) 1993, John Brezak
@@ -35,7 +35,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: rup.c,v 1.18 1999/07/30 01:29:30 hubertf Exp $");
+__RCSID("$NetBSD: rup.c,v 1.19 2000/03/08 12:10:28 jdolecek Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -99,10 +99,8 @@ remember_host(addr)
hosts = hp;
}
-
-
struct rup_data {
- char *host;
+ const char *host;
struct statstime statstime;
};
struct rup_data *rup_data;
@@ -118,9 +116,9 @@ enum sort_type {
enum sort_type sort_type;
int compare __P((struct rup_data *, struct rup_data *));
-void remember_rup_data __P((char *, struct statstime *));
+void remember_rup_data __P((const char *, struct statstime *));
int rstat_reply __P((char *, struct sockaddr_in *));
-int print_rup_data __P((char *, statstime *));
+int print_rup_data __P((const char *, statstime *));
void onehost __P((char *));
void allhosts __P((void));
int main __P((int, char *[]));
@@ -148,7 +146,7 @@ compare(d1, d2)
void
remember_rup_data(host, st)
- char *host;
+ const char *host;
struct statstime *st;
{
if (rup_data_idx >= rup_data_max) {
@@ -200,7 +198,7 @@ rstat_reply(replyp, raddrp)
int
print_rup_data(host, host_stat)
- char *host;
+ const char *host;
statstime *host_stat;
{
struct tm *tmp_time;