]> xenbits.xensource.com Git - libvirt.git/commit
virCryptoGenerateRandom: rename ret
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 29 May 2018 05:48:02 +0000 (07:48 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 5 Jun 2018 08:31:19 +0000 (10:31 +0200)
commitd4e66f76396f48dfe8137365a55cb3a869dec77a
tree54883b4e3a882be8d0b908803aec8d62ecea345e
parent29592788f1afac8b239f751fd5a861ed4d58b62d
virCryptoGenerateRandom: rename ret

This function allocates a buffer, fills it in with random bytes
and then returns it. However, the buffer is held in @buf
variable, therefore having @ret variable which does not hold
return value of the function is misleading.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
src/util/vircrypto.c