aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2019-06-16 16:38:56 +0200
committerJo-Philipp Wich <jo@mein.io>2019-09-04 13:12:19 +0200
commit8a78e4dbb99c253b92bc17c510fd1b80d1981014 (patch)
tree429ad0c42b4ace109011732406cbb0ed099229cd /package
parent18e3ab9e34c2430934009862ef5646dcd1f867ce (diff)
downloadupstream-8a78e4dbb99c253b92bc17c510fd1b80d1981014.tar.gz
upstream-8a78e4dbb99c253b92bc17c510fd1b80d1981014.tar.bz2
upstream-8a78e4dbb99c253b92bc17c510fd1b80d1981014.zip
urngd: Fix wrong type in format string
GCC 9.1 complains about this wrong type used in the format string, fix this to make the compiler happy. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> (cherry picked from commit 9b53201d9c53cd7021455ac9748b3dba744b468b)
Diffstat (limited to 'package')
-rw-r--r--package/system/urngd/patches/001-fix-compile.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/system/urngd/patches/001-fix-compile.patch b/package/system/urngd/patches/001-fix-compile.patch
new file mode 100644
index 0000000000..c9ab6857bb
--- /dev/null
+++ b/package/system/urngd/patches/001-fix-compile.patch
@@ -0,0 +1,11 @@
+--- a/urngd.c
++++ b/urngd.c
+@@ -114,7 +114,7 @@ static size_t gather_entropy(struct urng
+
+ ret = write_entropy(u, buf, sizeof(buf), ENTROPYBYTES);
+ if (sizeof(buf) != ret) {
+- ERROR("injected %lub of entropy, less then %db expected\n",
++ ERROR("injected %zub of entropy, less then %db expected\n",
+ ret, sizeof(buf));
+ } else {
+ ret = sizeof(buf);