diff options
author | charnier <charnier@FreeBSD.org> | 1997-09-17 06:30:22 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 1997-09-17 06:30:22 +0000 |
commit | 29e06a9a5c16dd58466848804b71e9aa020e2839 (patch) | |
tree | 04e42d4e035f065ccd9bf326991c434e1bb368af /usr.sbin/fdcontrol | |
parent | 4d3c6f853c078fa9aa64aca5f8bed82e41edd87b (diff) | |
download | FreeBSD-src-29e06a9a5c16dd58466848804b71e9aa020e2839.zip FreeBSD-src-29e06a9a5c16dd58466848804b71e9aa020e2839.tar.gz |
Perror() -> warn().
Diffstat (limited to 'usr.sbin/fdcontrol')
-rw-r--r-- | usr.sbin/fdcontrol/fdcontrol.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/usr.sbin/fdcontrol/fdcontrol.c b/usr.sbin/fdcontrol/fdcontrol.c index d93d4a0..c914b93 100644 --- a/usr.sbin/fdcontrol/fdcontrol.c +++ b/usr.sbin/fdcontrol/fdcontrol.c @@ -25,6 +25,12 @@ * DAMAGE. */ +#ifndef lint +static const char rcsid[] = + "$Id$"; +#endif /* not lint */ + +#include <err.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> @@ -89,7 +95,7 @@ main(int argc, char **argv) if((fd = open(argv[0], 0)) < 0) { - perror("open(floppy)"); + warn("open(floppy)"); return 1; } @@ -97,7 +103,7 @@ main(int argc, char **argv) { if(ioctl(fd, FD_DEBUG, &debug) < 0) { - perror("ioctl(FD_DEBUG)"); + warn("ioctl(FD_DEBUG)"); return 1; } return 0; @@ -107,7 +113,7 @@ main(int argc, char **argv) { if(ioctl(fd, FD_GTYPE, &ft) < 0) { - perror("ioctl(FD_GTYPE)"); + warn("ioctl(FD_GTYPE)"); return 1; } @@ -125,13 +131,11 @@ main(int argc, char **argv) if(ioctl(fd, FD_STYPE, &ft) < 0) { - perror("ioctl(FD_STYPE)"); + warn("ioctl(FD_STYPE)"); return 1; } return 0; } + return 0; } - - - |