=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/oldrdist/Attic/main.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- src/usr.bin/oldrdist/Attic/main.c 2002/02/19 19:39:38 1.12 +++ src/usr.bin/oldrdist/Attic/main.c 2002/06/09 21:11:22 1.13 @@ -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 @@ #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 @@ -99,7 +99,7 @@ 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] != '-') @@ -306,31 +306,4 @@ nl = nl->n_next; } 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); }