ports/net/widentd/files/patch-widentd.c
Piotr Kubaj d25876c3fb net/widentd: fix build on ARM / POWER
widentd.c:70:48: error: result of comparison of constant -1 with expression of type 'char' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
        while ((ch = getopt(argc, argv, "vo:u:s:i:")) != -1)
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~
2024-05-10 18:19:53 +02:00

20 lines
459 B
C

--- widentd.c.orig 2024-01-27 10:24:27 UTC
+++ widentd.c
@@ -51,7 +51,7 @@ main(int argc, char **argv)
int
main(int argc, char **argv)
{
- char ch;
+ signed char ch;
const int yes = 1;
int blog = BLOG;
unsigned int i;
@@ -190,7 +190,7 @@ main(int argc, char **argv)
to.tv_sec = TIMEOUT;
to.tv_usec = 0;
- memset(buff, sizeof(buff), 0);
+ memset(buff, (0), sizeof(buff));
do {
int n;