15 lines
473 B
Text
15 lines
473 B
Text
$NetBSD: patch-ad,v 1.1 2007/09/29 12:35:11 rillig Exp $
|
|
|
|
Since gcc 4, type casts result in rvalues.
|
|
|
|
--- hzconvert/b2u.c.orig 2001-04-28 03:45:46.000000000 +0200
|
|
+++ hzconvert/b2u.c 2007-09-29 14:33:27.000000000 +0200
|
|
@@ -32,7 +32,7 @@ extern unsigned char BtoU[], UtoB[];
|
|
extern int BtoU_count, UtoB_count;
|
|
|
|
#define c1 (unsigned char)(s[0])
|
|
-#define c2 (unsigned char)(s[1])
|
|
+#define c2 *((unsigned char *)(&s[1]))
|
|
|
|
static void b2u(s, t)
|
|
register char *s, *t;
|