summaryrefslogtreecommitdiff
path: root/usr.bin/units/units.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-04-21 23:47:39 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-04-21 23:47:39 +0000
commit882e83ccf31fca22178b290a6753a605bb52044c (patch)
treee2e6ec6ef7e162fd03a03e5c71bc96ce90d1c105 /usr.bin/units/units.c
parent67d88b0a9910a68bb666b448d2dac29cb4d3d8c2 (diff)
sync to netbsd 960418
Diffstat (limited to 'usr.bin/units/units.c')
-rw-r--r--usr.bin/units/units.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/units/units.c b/usr.bin/units/units.c
index 269a790ce99..13aaf1a2d06 100644
--- a/usr.bin/units/units.c
+++ b/usr.bin/units/units.c
@@ -1,3 +1,5 @@
+/* $NetBSD: units.c,v 1.6 1996/04/06 06:01:03 thorpej Exp $ */
+
/*
* units.c Copyright (c) 1993 by Adrian Mariano (adrian@cam.cornell.edu)
*
@@ -13,8 +15,6 @@
*
* I would appreciate (though I do not require) receiving a copy of any
* improvements you might make to this program.
- *
- * $Id: units.c,v 1.1 1995/10/18 08:46:30 deraadt Exp $
*/
#include <ctype.h>
@@ -625,20 +625,20 @@ usage()
}
-void
+int
main(int argc, char **argv)
{
struct unittype have, want;
char havestr[81], wantstr[81];
- char optchar;
+ int optchar;
char *userfile = 0;
int quiet = 0;
extern char *optarg;
extern int optind;
- while (EOF != (optchar = getopt(argc, argv, "vqf:"))) {
+ while ((optchar = getopt(argc, argv, "vqf:")) != -1) {
switch (optchar) {
case 'f':
userfile = optarg;