tpop3d-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tpop3d-discuss] Bug? (on Linux/390)


From: Chris Lightfoot
Subject: Re: [tpop3d-discuss] Bug? (on Linux/390)
Date: Sat, 25 Aug 2001 00:09:40 +0100

On Fri, Aug 24, 2001 at 09:48:47PM +0200, Allan Joergensen wrote:
> I was a little unsure wether to post this here or directly to Chris ..
> 
> The Problem:
> 
> dustpuppy:/usr/src/src/tpop3d-1.3.4 # ./tpop3d -f tpop3d.conf -p
> .tpop3d.pid  
> tpop3d: unrecognised option -?
> tpop3d, version 1.3.4
> 
> The symptoms (or not?):
> gcc -DHAVE_CONFIG_H -I. -I. -I.     -Wall -g -c main.c
> main.c: In function `main':
> main.c:494: warning: comparison is always true due to limited range of
> data type

Could you try replacing line 494 of main.c with

    while ((c = getopt(argc, argv, optstring)) != -1) {

? This should fix the problem; if not, I will investigate
further.

Re-reading the getopt man page, the previous code (!= EOF)
was in error. Evidently this was not apparent on the other
architectures I've tried :)


-- 
Chris Lightfoot -- www.ex-parrot.com/~chris/
 ``Sure, we humans pulled the levers and poked the chads, but in the
   end the machines did the counting and elected one of their own.''
   (Scott Adams, on Dick Cheney)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]