pkgsrc/converters/ack/patches/patch-lcode.c
dholland ffcaa87697 Fix legacy C. Passes gcc -Wall and should build on clang too.
This fixes at least one bug on some platforms (misuse of utime(3)) so
bump PKGREVISION.
2012-12-26 21:21:38 +00:00

21 lines
472 B
C

$NetBSD: patch-lcode.c,v 1.1 2012/12/26 21:21:38 dholland Exp $
- declare own functions
- declare void functions void
--- lcode.c.orig 1994-07-26 09:03:45.000000000 +0000
+++ lcode.c
@@ -5,10 +5,10 @@
#include "kanjicode.h"
#include "ackstring.h"
+#include "misc.h"
-SjisEucCheck( ptr, len, cp )
-unsigned char *ptr;
-T_KANJI *cp;
+void
+SjisEucCheck( unsigned char *ptr, size_t len, T_KANJI *cp )
{
unsigned char *endp= ptr+len;
int sjis= 0, euc= 0, step;