1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

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)
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~
This commit is contained in:
Piotr Kubaj 2024-05-09 14:38:43 +02:00
parent fdf4345958
commit d25876c3fb

View File

@ -1,6 +1,15 @@
--- widentd.c.orig 2015-02-24 19:27:09 UTC
--- widentd.c.orig 2024-01-27 10:24:27 UTC
+++ widentd.c
@@ -191,7 +191,7 @@ main(int argc, char **argv)
@@ -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;