cvs commit: src/lib/libc/uuid uuid_compare.c
Xin LI
delphij at FreeBSD.org
Thu Apr 5 02:07:33 UTC 2007
delphij 2007-04-05 02:07:33 UTC
FreeBSD src repository
Modified files:
lib/libc/uuid uuid_compare.c
Log:
Avoid using intermediate variables by just comparing between
two values, the latter does not tend to have sign extension
and/or overflow bugs, and makes the code more obvious.
While I'm there, make use of a macro which is derived from
bin/ps/ps.c: ps_compat() to improve the readability of the
code.
Suggested by: bde
MFC after: 1 week
Revision Changes Path
1.6 +15 -27 src/lib/libc/uuid/uuid_compare.c
More information about the cvs-src
mailing list