Date: Thu, 5 Apr 2007 02:07:33 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/uuid uuid_compare.c Message-ID: <200704050207.l3527XQK048162@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704050207.l3527XQK048162>
