pkgsrc/ham/gmfsk/patches/patch-ab
wulf 98f4a974a5 Updated ham/gmfsk to 0.6nb7: Fixed build problem caused by definition of
log2() function in misc.c and several compiler warnings.
2006-04-26 01:48:50 +00:00

28 lines
512 B
Text

$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;
-}
-
/* ---------------------------------------------------------------------- */
/*