On 1/23/2013 8:18 PM, David Severance wrote:
It would appear this compiles cleanly on RHEL5.9
x86_64. However as I
have now been able to move on to compiling perdition itself this
warning appears:
perdition.c: In function ‘write_pid_file’:
perdition.c:1370: warning: comparison is always false due to limited
range of data type
My eyebrows went up as I doubt this is intended, pls advise.
thanks,
David
I think an unsigned comparison, changing LONG_MAX to ULONG_MAX, solves
the problem. Let me know.
Yes, I think that should be correct.
But I also think that strtol on the previous line should be changed to
strtoul.