1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-16 04:35:13 +03:00
aports/testing/powerstat/0001-strlcpy-no-static.patch
2022-02-06 07:56:56 +00:00

20 lines
561 B
Diff

Author: ptrcnull <git@ptrcnull.me>
Date: Sun Feb 6 08:51:27 2022 +0100
Remove "static" from strlcpy
powerstat.c:339:15: error: static declaration of 'strlcpy' follows non-static declaration
diff --git a/powerstat.c b/powerstat.c
index cf5fc6e..7d03f66 100644
--- a/powerstat.c
+++ b/powerstat.c
@@ -336,7 +336,7 @@ static const int signals[] = {
* strlcpy()
* BSD strlcpy
*/
-static size_t strlcpy(char *dst, const char *src, size_t len)
+size_t strlcpy(char *dst, const char *src, size_t len)
{
char *d = dst;
const char *s = src;