pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/wakeup Cast an argument to isxdigit(3) to unsigned...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9a2f45bb7247
branches:  trunk
changeset: 483535:9a2f45bb7247
user:      hira <hira%pkgsrc.org@localhost>
date:      Sun Nov 14 13:35:20 2004 +0000

description:
Cast an argument to isxdigit(3) to unsigned char.  Fix build on
NetBSD/amd64.  OK'd by tron@.

diffstat:

 net/wakeup/distinfo         |   4 ++--
 net/wakeup/patches/patch-aa |  12 +++++++-----
 2 files changed, 9 insertions(+), 7 deletions(-)

diffs (41 lines):

diff -r 65307757184b -r 9a2f45bb7247 net/wakeup/distinfo
--- a/net/wakeup/distinfo       Sun Nov 14 11:42:48 2004 +0000
+++ b/net/wakeup/distinfo       Sun Nov 14 13:35:20 2004 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.3 2003/09/25 12:08:30 tron Exp $
+$NetBSD: distinfo,v 1.4 2004/11/14 13:35:20 hira Exp $
 
 SHA1 (hpwake.c.gz) = 9df23297ac93cf48aed2929990b80bff0143675a
 Size (hpwake.c.gz) = 1193 bytes
-SHA1 (patch-aa) = 0104cbbbef74c97ef146a6d41e513eee58073a7b
+SHA1 (patch-aa) = 74a88fa25b4deee4449e61ab11a06e5db0e3a8f0
diff -r 65307757184b -r 9a2f45bb7247 net/wakeup/patches/patch-aa
--- a/net/wakeup/patches/patch-aa       Sun Nov 14 11:42:48 2004 +0000
+++ b/net/wakeup/patches/patch-aa       Sun Nov 14 13:35:20 2004 +0000
@@ -1,7 +1,7 @@
-$NetBSD: patch-aa,v 1.3 2003/09/25 12:08:30 tron Exp $
+$NetBSD: patch-aa,v 1.4 2004/11/14 13:35:20 hira Exp $
 
---- hpwake.c.orig      2003-09-25 14:06:58.000000000 +0200
-+++ hpwake.c   2003-09-25 14:07:18.000000000 +0200
+--- hpwake.c.orig      2004-11-14 21:56:25.000000000 +0900
++++ hpwake.c   2004-11-14 21:57:36.000000000 +0900
 @@ -16,8 +16,10 @@
     email: wann%server7.ik.mb.uni-siegen.de@localhost
  */
@@ -22,11 +22,13 @@
  
  int get_magicpacket(packet,arg)
  
-@@ -42,7 +46,7 @@
+@@ -41,8 +45,8 @@
+         char *a;
  
          for (a = arg; *a; a++)
-                 if (*a != ':' && !isxdigit(*a)) {
+-                if (*a != ':' && !isxdigit(*a)) {
 -                        fprintf(stderr, "MAC Adresse muss hexadezimal angegeben werden! [00:11:22:33:44:55]\n");
++                if (*a != ':' && !isxdigit((unsigned char)*a)) {
 +                        fprintf(stderr, "MAC address must be given in hex! [00:11:22:33:44:55]\n");
                          exit(2);
                  }



Home | Main Index | Thread Index | Old Index