diff options
author | wulf <wulf> | 2006-04-26 01:48:50 +0000 |
---|---|---|
committer | wulf <wulf> | 2006-04-26 01:48:50 +0000 |
commit | b75fc8227ca609f3ef8d43ef4178e34d7e7def29 (patch) | |
tree | 9c59cd6d0350c34818ec6c8bb5a5a4b60f4d6b3e /ham/gmfsk/patches | |
parent | 8b3af8a77adbf69c9327a707bd78edab7ac06395 (diff) | |
download | pkgsrc-b75fc8227ca609f3ef8d43ef4178e34d7e7def29.tar.gz |
Updated ham/gmfsk to 0.6nb7: Fixed build problem caused by definition of
log2() function in misc.c and several compiler warnings.
Diffstat (limited to 'ham/gmfsk/patches')
-rw-r--r-- | ham/gmfsk/patches/patch-aa | 30 | ||||
-rw-r--r-- | ham/gmfsk/patches/patch-ab | 28 | ||||
-rw-r--r-- | ham/gmfsk/patches/patch-ac | 13 | ||||
-rw-r--r-- | ham/gmfsk/patches/patch-ad | 20 |
4 files changed, 91 insertions, 0 deletions
diff --git a/ham/gmfsk/patches/patch-aa b/ham/gmfsk/patches/patch-aa new file mode 100644 index 00000000000..aefd1db523b --- /dev/null +++ b/ham/gmfsk/patches/patch-aa @@ -0,0 +1,30 @@ +$NetBSD: patch-aa,v 1.1 2006/04/26 01:52:18 wulf Exp $ + +--- src/misc/misc.h.orig 2006-04-26 10:32:02.000000000 +0930 ++++ src/misc/misc.h 2006-04-26 10:31:20.000000000 +0930 +@@ -104,25 +104,6 @@ + /* ---------------------------------------------------------------------- */ + + /* +- * Integer base-2 logarithm +- */ +-extern inline int log2(unsigned int x) +-{ +- int y = 0; +- +- x >>= 1; +- +- while (x) { +- x >>= 1; +- y++; +- } +- +- return y; +-} +- +-/* ---------------------------------------------------------------------- */ +- +-/* + * Gray encoding and decoding (8 bit) + */ + extern inline unsigned char grayencode(unsigned char data) diff --git a/ham/gmfsk/patches/patch-ab b/ham/gmfsk/patches/patch-ab new file mode 100644 index 00000000000..d49b9bd620a --- /dev/null +++ b/ham/gmfsk/patches/patch-ab @@ -0,0 +1,28 @@ +$NetBSD: patch-ab,v 1.1 2006/04/26 01:52:18 wulf Exp $ + +--- src/misc/misc.c.orig 2006-04-26 10:31:03.000000000 +0930 ++++ src/misc/misc.c 2006-04-26 10:31:31.000000000 +0930 +@@ -102,23 +102,6 @@ + + /* ---------------------------------------------------------------------- */ + +-/* +- * Integer base-2 logarithm +- */ +-int log2(unsigned int x) +-{ +- int y = 0; +- +- x >>= 1; +- +- while (x) { +- x >>= 1; +- y++; +- } +- +- return y; +-} +- + /* ---------------------------------------------------------------------- */ + + /* diff --git a/ham/gmfsk/patches/patch-ac b/ham/gmfsk/patches/patch-ac new file mode 100644 index 00000000000..6252dd93395 --- /dev/null +++ b/ham/gmfsk/patches/patch-ac @@ -0,0 +1,13 @@ +$NetBSD: patch-ac,v 1.1 2006/04/26 01:52:18 wulf Exp $ + +--- src/macro.c.orig 2006-04-26 10:38:46.000000000 +0930 ++++ src/macro.c 2006-04-26 10:39:00.000000000 +0930 +@@ -287,7 +287,7 @@ + p++; + break; + default: +- for (p = *ptr; *p && isalnum(*p); p++) ++ for (p = *ptr; *p && isalnum((u_char) *p); p++) + ; + break; + } diff --git a/ham/gmfsk/patches/patch-ad b/ham/gmfsk/patches/patch-ad new file mode 100644 index 00000000000..b40bd9f213e --- /dev/null +++ b/ham/gmfsk/patches/patch-ad @@ -0,0 +1,20 @@ +$NetBSD: patch-ad,v 1.1 2006/04/26 01:52:18 wulf Exp $ + +--- src/picture.c.orig 2006-04-26 10:39:13.000000000 +0930 ++++ src/picture.c 2006-04-26 10:39:36.000000000 +0930 +@@ -48,13 +48,13 @@ + + p += 4; + +- while (isdigit(*p)) ++ while (isdigit((u_char) *p)) + *w = (*w * 10) + (*p++ - '0'); + + if (*p++ != 'x') + return FALSE; + +- while (isdigit(*p)) ++ while (isdigit((u_char) *p)) + *h = (*h * 10) + (*p++ - '0'); + + if (*p == 'C') { |