1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-11 09:50:12 +00:00

Fix exit code when used in non-interactive mode.

Remove ';' typo attached to if statement.
This commit is contained in:
Alexander Langer 1996-06-08 04:30:06 +00:00
parent bc720a3061
commit 4c0c227d97
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=16190

View File

@ -1,4 +1,4 @@
/* $Id: units.c,v 1.6 1996/04/06 06:01:03 thorpej Exp $ */
/* $Id: units.c,v 1.1.1.1 1996/06/08 03:43:43 alex Exp $ */
/*
* units.c Copyright (c) 1993 by Adrian Mariano (adrian@cam.cornell.edu)
@ -683,8 +683,8 @@ main(int argc, char **argv)
if (!quiet)
printf("You have: ");
if (!fgets(havestr, 80, stdin)) {
if (!quiet);
putchar('\n');
if (!quiet)
putchar('\n');
exit(0);
}
} while (addunit(&have, havestr, 0) ||
@ -703,4 +703,6 @@ main(int argc, char **argv)
showanswer(&have, &want);
}
}
return(0);
}