1abfa81621
so change MASTER_SITES to only ftp.sra.co.jp and force to use newer one. As sccsid in source, ${MASTE_SITE_FREEBSD}'s one is 2.2, and sra's one is 2.3, so bump PKGVERSION to 2.3. This issue noticed by taca@ by private mail. While here, set LICENSE=gnu-gpl-v2, modify pach-aa to suppress some warings by addition of include stdlib.h.
51 lines
1.2 KiB
Text
51 lines
1.2 KiB
Text
$NetBSD: patch-aa,v 1.2 2010/01/06 02:31:53 obache Exp $
|
|
|
|
--- kcc.c.orig 1994-07-01 05:47:48.000000000 +0000
|
|
+++ kcc.c
|
|
@@ -27,6 +27,7 @@ static char copyright[] = "@(#)Copyright
|
|
#endif
|
|
|
|
#include <stdio.h>
|
|
+#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
@@ -134,7 +135,11 @@ extern unsigned short katakana[];
|
|
extern unsigned short hiragana[];
|
|
unsigned short *kanatbl = katakana;
|
|
|
|
+#ifdef __STDC__
|
|
+void error(char *format, ...);
|
|
+#else
|
|
void error();
|
|
+#endif
|
|
|
|
/**********************************************************************
|
|
* *
|
|
@@ -364,14 +369,26 @@ main(c, v)
|
|
NAME
|
|
error - print formatted error message on stderr and die
|
|
---------------------------------------------------------------------*/
|
|
+#ifdef __STDC__
|
|
+#include <stdarg.h>
|
|
+#else
|
|
#include <varargs.h>
|
|
+#endif
|
|
|
|
+#ifdef __STDC__
|
|
+void error(char *format, ...)
|
|
+#else
|
|
void error(va_alist)
|
|
va_dcl
|
|
+#endif
|
|
{
|
|
va_list args;
|
|
|
|
+#ifdef __STDC__
|
|
+ va_start(args, format);
|
|
+#else
|
|
va_start(args);
|
|
+#endif
|
|
fprintf(stderr, "%s: ", progname);
|
|
vfprintf(stderr, va_arg(args, char *), args);
|
|
putc('\n', stderr);
|