From 8268bea7591e2bea60c07b26997fc37415d87f87 Mon Sep 17 00:00:00 2001 From: Philippe Charnier Date: Wed, 17 Sep 1997 06:30:22 +0000 Subject: Perror() -> warn(). --- usr.sbin/fdcontrol/fdcontrol.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'usr.sbin/fdcontrol') diff --git a/usr.sbin/fdcontrol/fdcontrol.c b/usr.sbin/fdcontrol/fdcontrol.c index d93d4a0530ab..c914b932bee4 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 #include #include #include @@ -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; } - - - -- cgit v1.2.3