]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virUUIDFormat: s/VIR_UUID_RAW_LEN/VIR_UUID_BUFLEN/ in comment
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 8 Aug 2019 07:36:17 +0000 (09:36 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 22 Aug 2019 08:34:42 +0000 (10:34 +0200)
The function takes raw UUID and formats it into string
representation. However, the comment mistakenly states that the
expected size of raw UUID buffer is VIR_UUID_RAW_LEN bytes. We
don't have such constant since v0.3.2~24. It should have been
VIR_UUID_BUFLEN.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
src/util/viruuid.c

index 0c12ddcc3ee28badcb5e9b93160dd2843c1e9fc2..8930a0e199463849b52d29dc6b50e713290b9ae9 100644 (file)
@@ -141,7 +141,7 @@ virUUIDParse(const char *uuidstr, unsigned char *uuid)
 
 /**
  * virUUIDFormat:
- * @uuid: array of VIR_UUID_RAW_LEN bytes to store the raw UUID
+ * @uuid: array of VIR_UUID_BUFLEN bytes to store the raw UUID
  * @uuidstr: array of VIR_UUID_STRING_BUFLEN bytes to store the
  * string representation of the UUID in. The resulting string
  * will be NULL terminated.