Date: Fri, 8 Aug 2003 12:03:38 -0700 (PDT) From: Marcel Moolenaar <marcel@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: <200308081903.h78J3cUM026873@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
marcel 2003/08/08 12:03:37 PDT
FreeBSD src repository
Modified files:
lib/libc/uuid uuid_compare.c
Log:
Fix two (2) bugs in one (1) statement:
o fix the len argument of memcmp(3) to be the size of the node field
of the uuid structure, not the size of the uuid structure itself.
We're comparing the node fields...
o uuid_compare(3) is specified to return -1, 0 or 1, depending on
the outcome of the comparison. memcmp(3) returns the difference
between the first differing bytes. Hence, we cannot ever return
the return value of memcmp(3) as-is.
PR: standards/55370
Submitted by: Konstantin Oznobihin <bork@rsu.ru>
Revision Changes Path
1.2 +4 -1 src/lib/libc/uuid/uuid_compare.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308081903.h78J3cUM026873>
