]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
lib/uuid: UUID routines can fail
authorOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:28 +0000 (11:23 -0700)
committerOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:28 +0000 (11:23 -0700)
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

index 0498e3685d25092533a0876eaefaac9628ebe7c7..2cb8e9f4bb2ca147dd9fe971d8d077aa2245921d 100644 (file)
@@ -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);