diff options
author | Warner Losh <imp@FreeBSD.org> | 1997-03-31 05:11:47 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 1997-03-31 05:11:47 +0000 |
commit | 6c3f552a31dd0a0c8c59a028fd9bc507d43ec5cc (patch) | |
tree | 9dcc58d3fb5e1644413565971c98196650ef87d3 /usr.sbin/moused/moused.c | |
parent | 44ee97a91b095311b8703857d54df336354236a0 (diff) | |
download | src-6c3f552a31dd0a0c8c59a028fd9bc507d43ec5cc.tar.gz src-6c3f552a31dd0a0c8c59a028fd9bc507d43ec5cc.zip |
compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
Notes
Notes:
svn path=/head/; revision=24428
Diffstat (limited to 'usr.sbin/moused/moused.c')
-rw-r--r-- | usr.sbin/moused/moused.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/moused/moused.c b/usr.sbin/moused/moused.c index 40085879cdeb..f05c77a82d46 100644 --- a/usr.sbin/moused/moused.c +++ b/usr.sbin/moused/moused.c @@ -30,7 +30,7 @@ ** EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ** ** - ** $Id: moused.c,v 1.7 1997/02/22 16:06:42 peter Exp $ + ** $Id: moused.c,v 1.8 1997/03/29 12:10:26 peter Exp $ **/ /** @@ -157,7 +157,7 @@ main(int argc, char *argv[]) progname = argv[0]; - while((c = getopt(argc,argv,"cdfr:sp:t:h?RDS:")) != EOF) + while((c = getopt(argc,argv,"cdfr:sp:t:h?RDS:")) != -1) switch(c) { case 'c': |