diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2024-05-09 12:38:43 +0000 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2024-05-10 16:19:53 +0000 |
commit | d25876c3fb5f106b9630e2516ad33b158e8e9b61 (patch) | |
tree | 9a8873a0d8f14e32a370e0cc1dfdb726b7d549f9 | |
parent | fdf434595805724973180480d2ced784563f560d (diff) | |
download | ports-d25876c3fb5f106b9630e2516ad33b158e8e9b61.tar.gz ports-d25876c3fb5f106b9630e2516ad33b158e8e9b61.zip |
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)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~
-rw-r--r-- | net/widentd/files/patch-widentd.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/net/widentd/files/patch-widentd.c b/net/widentd/files/patch-widentd.c index e91450cad30a..fe22b377721f 100644 --- a/net/widentd/files/patch-widentd.c +++ b/net/widentd/files/patch-widentd.c @@ -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; |