Source-Changes archive

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

CVS commit: basesrc/usr.bin/chpass



Module Name:    basesrc
Committed By:   simonb
Date:           Thu May  9 01:58:39 UTC 2002

Modified Files:
        basesrc/usr.bin/chpass: field.c

Log Message:
Fix warnings found by gcc-current with alpha target:
There's no use assigning the output of strtoul() to a 32-bit variable
then checking that against ULONG_MAX.  Instead use a "unsigned long"
as the temporary variable.  Also, only check against UID_MAX/GID_MAX;
these are both going to be smaller than ULONG_MAX on both 32- and 64-bit
platforms.


To generate a diff of this commit:
cvs rdiff -r1.7 -r1.8 basesrc/usr.bin/chpass/field.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index