summaryrefslogtreecommitdiff
path: root/chat
diff options
context:
space:
mode:
authorjoerg <joerg>2017-02-07 23:55:05 +0000
committerjoerg <joerg>2017-02-07 23:55:05 +0000
commit06bc0410605daaff474bba44e82b0c03a91f5d0f (patch)
tree256a918f0afc2ac3e2916d6fb28bc1de8162712e /chat
parent618f2bff5de911349f498e564a361753080065de (diff)
downloadpkgsrc-06bc0410605daaff474bba44e82b0c03a91f5d0f.tar.gz
Deal with non-value-preserving casts.
Diffstat (limited to 'chat')
-rw-r--r--chat/phone/distinfo4
-rw-r--r--chat/phone/patches/patch-conv_convd.c22
2 files changed, 23 insertions, 3 deletions
diff --git a/chat/phone/distinfo b/chat/phone/distinfo
index e2cc4d3c147..deecf5d6229 100644
--- a/chat/phone/distinfo
+++ b/chat/phone/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.9 2015/11/07 22:19:46 dholland Exp $
+$NetBSD: distinfo,v 1.10 2017/02/07 23:55:05 joerg Exp $
SHA1 (phone-2.0nb1/phone-2.0.tar.gz) = 0d89cc63225ee96d821dd3d8ab310ac5ea69b40a
RMD160 (phone-2.0nb1/phone-2.0.tar.gz) = c43ac0cd5de357cfb5dee1ac1546f2c2926be6ab
@@ -8,7 +8,7 @@ SHA1 (patch-client_Makefile) = 8f501f4dc5fe7f1ef2ce89f618980c8ea0a9e2fc
SHA1 (patch-client_defs.h) = a2f807945ff17d0f3664789bbe94487e8e31672c
SHA1 (patch-client_misc.c) = 70ce9dec31c95d63eabb17e9c618e91d7c49fd86
SHA1 (patch-conv_Makefile) = fdacf30c339aecaf2326da956196e65bf6c8fe47
-SHA1 (patch-conv_convd.c) = 627f5a0d604857681c6c41d999a8ccafb488b316
+SHA1 (patch-conv_convd.c) = 7f1ea576cceff2425daf7fbb99d29101ac7f1492
SHA1 (patch-master_Makefile) = 07215108e5ae85c62c5a06a195e95a804776c8e3
SHA1 (patch-master_defs.h) = c9d79711b28d629dbe9c1493f2467faf915ee9be
SHA1 (patch-master_page.c) = db2af3cb4069384e8159c8eaad43587280630954
diff --git a/chat/phone/patches/patch-conv_convd.c b/chat/phone/patches/patch-conv_convd.c
index 0af1359c403..638f47c9ce1 100644
--- a/chat/phone/patches/patch-conv_convd.c
+++ b/chat/phone/patches/patch-conv_convd.c
@@ -1,7 +1,9 @@
-$NetBSD: patch-conv_convd.c,v 1.2 2015/06/25 07:02:42 dholland Exp $
+$NetBSD: patch-conv_convd.c,v 1.3 2017/02/07 23:55:05 joerg Exp $
- Don't rely on __unused from netbsd's <cdefs.h> existing.
- Remove unused variable that causes build failure with gcc48.
+- Add explicit casts if the constants are not value preserved
+ on signed char platforms.
--- conv/convd.c.orig 2013-01-02 23:00:43.000000000 +0000
+++ conv/convd.c
@@ -32,3 +34,21 @@ $NetBSD: patch-conv_convd.c,v 1.2 2015/06/25 07:02:42 dholland Exp $
signal(SIGPIPE, SIG_IGN); /* we'll find out soon enough */
signal(SIGALRM, sigalrm); /* to handle timeout */
+@@ -357,7 +359,7 @@ intro(int fd)
+ char sc; /* used for slot number selection */
+
+ /* tell user not to update screen until done with intro */
+- sc = META | UPDATE | 00;
++ sc = (char)(META | UPDATE | 00);
+ write(fd, &sc, 1);
+
+ /* first go through and add all the windows */
+@@ -404,7 +406,7 @@ intro(int fd)
+ }
+
+ /* now he can update the screen */
+- sc = META | UPDATE | 01;
++ sc = (char)(META | UPDATE | 01);
+ write(fd, &sc, 1);
+ }
+