summaryrefslogtreecommitdiff
path: root/usr.bin/oldrdist/main.c
diff options
context:
space:
mode:
authorHans Insulander <hin@cvs.openbsd.org>2002-06-09 21:11:23 +0000
committerHans Insulander <hin@cvs.openbsd.org>2002-06-09 21:11:23 +0000
commit27255f9af239232f89515556d3a70afe9e928015 (patch)
tree05a790f151f8c73f8c2e42c5749821c1580be440 /usr.bin/oldrdist/main.c
parent42ccc90dfcd4f0b3df2f10ae00d75bccca7a3164 (diff)
Remove private unused version of warn().
Replave private basename() with the real one. ok millert@
Diffstat (limited to 'usr.bin/oldrdist/main.c')
-rw-r--r--usr.bin/oldrdist/main.c33
1 files changed, 3 insertions, 30 deletions
diff --git a/usr.bin/oldrdist/main.c b/usr.bin/oldrdist/main.c
index a360802a507..21eb70f0b52 100644
--- a/usr.bin/oldrdist/main.c
+++ b/usr.bin/oldrdist/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.12 2002/02/19 19:39:38 millert Exp $ */
+/* $OpenBSD: main.c,v 1.13 2002/06/09 21:11:22 hin Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -41,7 +41,7 @@ static char copyright[] =
#ifndef lint
/* from: static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/9/93"; */
-static char *rcsid = "$OpenBSD: main.c,v 1.12 2002/02/19 19:39:38 millert Exp $";
+static char *rcsid = "$OpenBSD: main.c,v 1.13 2002/06/09 21:11:22 hin Exp $";
#endif /* not lint */
#include <stdarg.h>
@@ -99,7 +99,7 @@ main(argc, argv)
gethostname(host, sizeof(host));
strcpy(tempfile, _PATH_TMP);
strcat(tempfile, _RDIST_TMP);
- tempname = xbasename(tempfile);
+ tempname = basename(tempfile);
while (--argc > 0) {
if ((arg = *++argv)[0] != '-')
@@ -307,30 +307,3 @@ prnames(nl)
}
printf(")\n");
}
-
-void
-warn(const char *fmt, ...)
-{
- extern int yylineno;
- va_list ap;
-
- va_start(ap, fmt);
- (void)fprintf(stderr, "rdist: line %d: Warning: ", yylineno);
- (void)vfprintf(stderr, fmt, ap);
- (void)fprintf(stderr, "\n");
- va_end(ap);
-}
-
-/*
- * Private version of basename()
- */
-char *xbasename(path)
- char *path;
-{
- char *cp;
-
- if (cp = strrchr(path, '/'))
- return(cp+1);
- else
- return(path);
-}