diff options
author | dp <none@none> | 2005-09-30 13:35:28 -0700 |
---|---|---|
committer | dp <none@none> | 2005-09-30 13:35:28 -0700 |
commit | ace1a5f11236a072fca1b5e0ea1416a083a9f2aa (patch) | |
tree | 4b68ee26cde495cc3c647bc0db7b860351014501 /usr/src/cmd/fmthard | |
parent | 47644099886aa8d3f43120b9eede3044342be473 (diff) | |
download | illumos-gate-ace1a5f11236a072fca1b5e0ea1416a083a9f2aa.tar.gz |
6324803 sys_errlist should be expunged where possible
--HG--
rename : usr/src/cmd/oamuser/lib/prerrno.c => usr/src/cmd/oamuser/lib/.del-prerrno.c-Sep-20-05
Diffstat (limited to 'usr/src/cmd/fmthard')
-rw-r--r-- | usr/src/cmd/fmthard/fmthard.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/usr/src/cmd/fmthard/fmthard.c b/usr/src/cmd/fmthard/fmthard.c index 92d44338d8..6887b269aa 100644 --- a/usr/src/cmd/fmthard/fmthard.c +++ b/usr/src/cmd/fmthard/fmthard.c @@ -94,14 +94,6 @@ extern int read_vtoc(int, struct vtoc *); extern int write_vtoc(int, struct vtoc *); /* - * Externals - */ -extern char *optarg; -extern int optind; -extern int errno; -extern char *sys_errlist[]; - -/* * Internal functions. */ extern int main(int, char **); @@ -233,7 +225,7 @@ main(int argc, char **argv) if ((fd = open(argv[optind], O_RDWR|O_NDELAY)) < 0) { (void) fprintf(stderr, "fmthard: Cannot open device %s - %s\n", - argv[optind], sys_errlist[errno]); + argv[optind], strerror(errno)); exit(1); } |