pkgsrc/ham/tlf/patches/patch-aa
rillig 9bfe7d0cbf - Added a patch for ISO C90 compatibility.
- Fixed all pkglint -Wall warnings.
2006-01-20 13:09:59 +00:00

19 lines
516 B
Text

$NetBSD: patch-aa,v 1.1 2006/01/20 13:09:59 rillig Exp $
readctydata.c:94: warning: ISO C89 forbids mixed declarations and code
--- src/readctydata.c.orig 2005-12-17 15:16:38.000000000 +0100
+++ src/readctydata.c 2006-01-20 11:53:07.000000000 +0100
@@ -88,10 +88,11 @@
}
else // prefix line
{
+ char *loc = NULL; //PG4I, 26Jul2005
+
strncpy(buffer, buf, 79);
buffer[79] = 0;
- char *loc = NULL; //PG4I, 26Jul2005
if ((loc = strchr(buffer, '\r')))
*loc = '\0';