]> git.proxmox.com Git - mirror_qemu.git/blobdiff - crypto/random-gnutls.c
exec.c: correct the maximum skip value during compact
[mirror_qemu.git] / crypto / random-gnutls.c
index 5350003a0baabf21dcbbe91a5a67c824572346c5..96af91aee4a1cb3be8396c68320bc29ea88f94f1 100644 (file)
@@ -6,7 +6,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 #include "qemu/osdep.h"
 
 #include "crypto/random.h"
+#include "qapi/error.h"
 
 #include <gnutls/gnutls.h>
 #include <gnutls/crypto.h>
 
-int qcrypto_random_bytes(uint8_t *buf,
+int qcrypto_random_bytes(void *buf,
                          size_t buflen,
                          Error **errp)
 {