sync with -current:

call setprogname(), replace a 'sed' with getprogname().
This commit is contained in:
grant 2003-10-16 12:13:54 +00:00
parent a1299791d3
commit 5bf3251757

View file

@ -1,4 +1,4 @@
/* $NetBSD: main.c,v 1.1.1.1 2003/08/18 17:34:59 agc Exp $ */
/* $NetBSD: main.c,v 1.2 2003/10/16 12:13:54 grant Exp $ */
/*-
* Copyright (c) 1992 Diomidis Spinellis.
@ -52,7 +52,7 @@ __COPYRIGHT("@(#) Copyright (c) 1992, 1993\n\
#if 0
static char sccsid[] = "@(#)main.c 8.2 (Berkeley) 1/3/94";
#else
__RCSID("$NetBSD: main.c,v 1.1.1.1 2003/08/18 17:34:59 agc Exp $");
__RCSID("$NetBSD: main.c,v 1.2 2003/10/16 12:13:54 grant Exp $");
#endif
#endif /* not lint */
@ -160,8 +160,8 @@ main(int argc, char *argv[])
default:
case '?':
(void)fprintf(stderr,
"usage:\t%s script [-anE] [file ...]\n\tsed [-an] [-e script] ... [-f script_file] ... [file ...]\n",
getprogname());
"usage:\t%s script [-anE] [file ...]\n\t%s [-an] [-e script] ... [-f script_file] ... [file ...]\n",
getprogname(), getprogname());
exit(1);
}
argc -= optind;