From 6cf5cd8ebd7b04c8b4261c09597b66bf1cddad46 Mon Sep 17 00:00:00 2001 From: cjs Date: Mon, 13 Oct 1997 22:12:01 +0000 Subject: Since we've got an int to store the value, why store it in a function pointer and cast it? --- trek/getpar.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'trek') 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; } -- cgit v1.2.3-56-ge451