From df7cd6fa96fa35aa12f081a012a8f3f4273c1127 Mon Sep 17 00:00:00 2001 From: Martin Schaffner Date: Sat, 23 Oct 2004 20:53:08 +0000 Subject: [PATCH] remove warning created by the fix for the cfgets issue of 2004-08-29 --- ChangeLog | 2 ++ main/inferno.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e3e25672..a67ec729 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,8 @@ VisualC/d2x/d2x.dsp, VisualC/d2xgl/d2xgl.dsp, VisualCE/d2x/d2x.vcp: delete file compbit.h, move functionality to text.c, modify all previous users of compbit.h to use existing function in text.h + * main/inferno.c: remove warning created by the fix for the cfgets + issue of 2004-08-29 2004-10-23 Chris Taylor diff --git a/main/inferno.c b/main/inferno.c index ea55c77b..057903f8 100644 --- a/main/inferno.c +++ b/main/inferno.c @@ -1,4 +1,4 @@ -/* $Id: inferno.c,v 1.90 2004-10-23 17:42:13 schaffner Exp $ */ +/* $Id: inferno.c,v 1.91 2004-10-23 20:53:08 schaffner Exp $ */ /* THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO @@ -194,7 +194,7 @@ void print_commandline_help() { char *end; - while (end = cfgets(line,LINE_LEN,ifile)) { + while ((end = cfgets(line,LINE_LEN,ifile))) { // This is the only use of cfgets that needs the CR *end++ = '\n'; -- 2.39.2