diff options
| author | Rodney W. Grimes <rgrimes@FreeBSD.org> | 1995-05-30 03:57:47 +0000 |
|---|---|---|
| committer | Rodney W. Grimes <rgrimes@FreeBSD.org> | 1995-05-30 03:57:47 +0000 |
| commit | 709e8f9ae1d734c1a163c9b421df4b8153939ce7 (patch) | |
| tree | 15a9c7203efd47ba6dde2896fdb6327dddd4547f /usr.sbin/fdcontrol | |
| parent | 010f5413b5781bc362fde190ec835a424ec8d28e (diff) | |
Notes
Diffstat (limited to 'usr.sbin/fdcontrol')
| -rw-r--r-- | usr.sbin/fdcontrol/fdcontrol.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.sbin/fdcontrol/fdcontrol.c b/usr.sbin/fdcontrol/fdcontrol.c index a93aa450dcf25..d7d98464fe02f 100644 --- a/usr.sbin/fdcontrol/fdcontrol.c +++ b/usr.sbin/fdcontrol/fdcontrol.c @@ -35,7 +35,7 @@ getnumber(void) { int i; char b[80]; - + fgets(b, 80, stdin); if(b[0] == '\n') return -1; @@ -69,23 +69,23 @@ main(int argc, char **argv) debug = atoi(optarg); settype = 0; break; - + case 's': debug = -1; settype = 1; break; - + case '?': default: usage(); } - + argc -= optind; argv += optind; if(argc != 1) usage(); - + if((fd = open(argv[0], 0)) < 0) { perror("open(floppy)"); @@ -101,7 +101,7 @@ main(int argc, char **argv) } return 0; } - + if(settype) { if(ioctl(fd, FD_GTYPE, &ft) < 0) @@ -129,7 +129,7 @@ main(int argc, char **argv) } return 0; } - + } |
