pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/chat/phone Deal with non-value-preserving casts.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3321548636f9
branches:  trunk
changeset: 358247:3321548636f9
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Feb 07 23:55:05 2017 +0000

description:
Deal with non-value-preserving casts.

diffstat:

 chat/phone/distinfo                   |   4 ++--
 chat/phone/patches/patch-conv_convd.c |  22 +++++++++++++++++++++-
 2 files changed, 23 insertions(+), 3 deletions(-)

diffs (54 lines):

diff -r cc832137fbb4 -r 3321548636f9 chat/phone/distinfo
--- a/chat/phone/distinfo       Tue Feb 07 23:54:08 2017 +0000
+++ b/chat/phone/distinfo       Tue Feb 07 23:55:05 2017 +0000
@@ -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_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 -r cc832137fbb4 -r 3321548636f9 chat/phone/patches/patch-conv_convd.c
--- a/chat/phone/patches/patch-conv_convd.c     Tue Feb 07 23:54:08 2017 +0000
+++ b/chat/phone/patches/patch-conv_convd.c     Tue Feb 07 23:55:05 2017 +0000
@@ -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 @@
  
      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);
+ }
+ 



Home | Main Index | Thread Index | Old Index