From 11c8e52f1f4032eff096cc0ba6aadfacae2ed0d3 Mon Sep 17 00:00:00 2001 From: Oliver Kurth Date: Fri, 15 Sep 2017 11:23:28 -0700 Subject: [PATCH] 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. --- open-vm-tools/lib/include/uuid.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 2.47.3