diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2020-03-05 16:56:19 +0100 |
---|---|---|
committer | James Cameron <quozl@laptop.org> | 2020-03-12 14:17:55 +1100 |
commit | 481c917f96c4872e0e32e18393f880710361a48d (patch) | |
tree | d9494d58f162cac4802efaad908a6e87491de684 | |
parent | 59ec9456e5bad8bceb307b981e1ada8e282eb9df (diff) | |
download | openfirmware-481c917f96c4872e0e32e18393f880710361a48d.tar.gz |
clients/lib: include string.h for memset()
Fixes a build warning due to a missing prototype:
strprop.c: In function 'zalloc':
strprop.c:13:2: warning: implicit declaration of function 'memset'
[-Wimplicit-function-declaration]
13 | memset(vp, size, 0);
| ^~~~~~
-rw-r--r-- | clients/lib/strprop.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clients/lib/strprop.c b/clients/lib/strprop.c index 91adf246..a17e28fb 100644 --- a/clients/lib/strprop.c +++ b/clients/lib/strprop.c @@ -3,6 +3,7 @@ /* For gcc, compile with -fno-builtin to suppress warnings */ #include "1275.h" +#include "string.h" void * zalloc(size_t size) |