From 3adf144aea9e5b50adf55d76e957a131e4e54d86 Mon Sep 17 00:00:00 2001 From: mdw Date: Sun, 13 Jan 2002 14:43:41 +0000 Subject: [PATCH] Kill some spurious warnings. --- xgetline.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/xgetline.c b/xgetline.c index 1e060cc..c9370c8 100644 --- a/xgetline.c +++ b/xgetline.c @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: xgetline.c,v 1.11 1999/08/20 07:30:33 mdw Exp $ + * $Id: xgetline.c,v 1.12 2002/01/13 14:43:41 mdw Exp $ * * Fetch a line of text from the user * @@ -29,6 +29,9 @@ /*----- Revision history --------------------------------------------------* * * $Log: xgetline.c,v $ + * Revision 1.12 2002/01/13 14:43:41 mdw + * Kill some spurious warnings. + * * Revision 1.11 1999/08/20 07:30:33 mdw * Miscellaneous changes, mostly concerning options parsing. * @@ -179,14 +182,12 @@ int main(int argc, char *argv[]) const char *list = 0; int histmax = 20; - GList *hist; + GList *hist = 0; - enum { - f_invis = 1, - f_duff = 2, - f_history = 4, - f_nochoice = 8 - }; +#define f_invis 1u +#define f_duff 2u +#define f_history 4u +#define f_nochoice 8u /* --- User interface bits --- */ @@ -351,7 +352,6 @@ Options available are:\n\ * Inability to open the file is not a disaster. */ - hist = 0; if (fp) { dstr d = DSTR_INIT; -- 2.11.0