From: Oliver Kurth Date: Fri, 15 Sep 2017 18:23:28 +0000 (-0700) Subject: lib/uuid: UUID routines can fail X-Git-Tag: stable-10.2.0~315 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11c8e52f1f4032eff096cc0ba6aadfacae2ed0d3;p=thirdparty%2Fopen-vm-tools.git lib/uuid: UUID routines can fail If a UUID routine can fail, make this so. Document this and make it clear what the failure indicator is. This is the first step to having the UUID routine caller handle an error. The next steps require visiting the callers and plumb error detection. --- diff --git a/open-vm-tools/lib/include/uuid.h b/open-vm-tools/lib/include/uuid.h index 0498e3685..2cb8e9f4b 100644 --- a/open-vm-tools/lib/include/uuid.h +++ b/open-vm-tools/lib/include/uuid.h @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 1998-2016 VMware, Inc. All rights reserved. + * Copyright (C) 1998-2017 VMware, Inc. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published @@ -157,9 +157,9 @@ char *UUID_Create(const char *configFileFullPath, char *UUID_CreateRandom(void); -void UUID_CreateRandomRFC4122V4(UUIDRFC4122 *id); +Bool UUID_CreateRandomRFC4122V4(UUIDRFC4122 *id); -void UUID_CreateRandomEFI(EFIGUID *id); +Bool UUID_CreateRandomEFI(EFIGUID *id); char *UUID_CreateRandomVpxStyle(uint8 vpxdId, UUIDStyle);