diff options
author | cjs <cjs@NetBSD.org> | 1997-10-13 22:12:01 +0000 |
---|---|---|
committer | cjs <cjs@NetBSD.org> | 1997-10-13 22:12:01 +0000 |
commit | 6cf5cd8ebd7b04c8b4261c09597b66bf1cddad46 (patch) | |
tree | 79aa5d7edc29211fd7b0577828f50ad04cef2ae9 /trek/getpar.c | |
parent | cbca3c92d1623e93355f119706880d0efcafaa4f (diff) | |
download | bsdgames-darwin-6cf5cd8ebd7b04c8b4261c09597b66bf1cddad46.tar.gz bsdgames-darwin-6cf5cd8ebd7b04c8b4261c09597b66bf1cddad46.tar.zst bsdgames-darwin-6cf5cd8ebd7b04c8b4261c09597b66bf1cddad46.zip |
Since we've got an int to store the value, why store it in a function
pointer and cast it?
Diffstat (limited to 'trek/getpar.c')
-rw-r--r-- | trek/getpar.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/trek/getpar.c b/trek/getpar.c index 0250a4db..c35cd90d 100644 --- a/trek/getpar.c +++ b/trek/getpar.c @@ -1,4 +1,4 @@ -/* $NetBSD: getpar.c,v 1.5 1997/10/12 21:24:50 christos Exp $ */ +/* $NetBSD: getpar.c,v 1.6 1997/10/13 22:12:01 cjs Exp $ */ /* * Copyright (c) 1980, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)getpar.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: getpar.c,v 1.5 1997/10/12 21:24:50 christos Exp $"); +__RCSID("$NetBSD: getpar.c,v 1.6 1997/10/13 22:12:01 cjs Exp $"); #endif #endif /* not lint */ @@ -104,7 +104,7 @@ char *s; struct cvntab Yntab[] = { - { "y", "es", (cmdfun)1, 0 }, + { "y", "es", (cmdfun)1, 1 }, { "n", "o", (cmdfun)0, 0 }, { NULL, NULL, NULL, 0 } }; @@ -116,7 +116,7 @@ char *s; struct cvntab *r; r = getcodpar(s, Yntab); - return (int) r->value; + return r->value2; } |