diff options
author | markm <markm@FreeBSD.org> | 2002-03-24 15:17:53 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2002-03-24 15:17:53 +0000 |
commit | 46388605d15bf0a6846de3e434c971c64a1a4d8c (patch) | |
tree | ca51db3cc0d0f90a26e22a3f6c2df05babf803d7 /sbin/fsck_ffs | |
parent | bda6eb4b895b0f54155daafc283d090fd878929d (diff) | |
download | FreeBSD-src-46388605d15bf0a6846de3e434c971c64a1a4d8c.zip FreeBSD-src-46388605d15bf0a6846de3e434c971c64a1a4d8c.tar.gz |
Replace __progname with the documented, more acceptable and functionally identical getprogname(3).
Diffstat (limited to 'sbin/fsck_ffs')
-rw-r--r-- | sbin/fsck_ffs/main.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sbin/fsck_ffs/main.c b/sbin/fsck_ffs/main.c index 6b25aa0..55e25c3 100644 --- a/sbin/fsck_ffs/main.c +++ b/sbin/fsck_ffs/main.c @@ -41,10 +41,11 @@ static const char copyright[] = #if 0 static char sccsid[] = "@(#)main.c 8.6 (Berkeley) 5/14/95"; #endif -static const char rcsid[] = - "$FreeBSD$"; #endif /* not lint */ +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); + #include <sys/param.h> #include <sys/stat.h> #include <sys/file.h> @@ -496,11 +497,9 @@ getmntpt(const char *name) static void usage(void) { - extern char *__progname; - (void) fprintf(stderr, "Usage: %s [-BFpfny] [-b block] [-c level] [-m mode] " "filesystem ...\n", - __progname); + getprogname()); exit(1); } |