proc_uuid.cc: Clean up code
commit602b7eae9ad126b591f7eb3eeba6f7af2668b36f
authorOlly Betts <olly@survex.com>
Mon, 23 Oct 2017 22:39:53 +0000 (24 11:39 +1300)
committerOlly Betts <olly@survex.com>
Mon, 23 Oct 2017 22:39:53 +0000 (24 11:39 +1300)
tree9e7a8676f0507031140138a82204ce9d1b45607a
parente01b1450c7e221ac7321fbfeb013764ceea830b8
proc_uuid.cc: Clean up code

Use UUID_STRING_SIZE consistently.

Don't bother nul-terminating UUID read from /proc/sys/kernel/random/uuid
before passing it to uuid_parse() since our uuid_parse doesn't care if
there's a terminating nul or not.

Make uuid_unparse_lower() nul-terminate its result.  The glass code
doesn't currently need this, but it's a potentially surprising
difference compared to the util-linux-ng implementation we're emulating.
xapian-core/common/proc_uuid.cc