freebsd-ports/japanese/xjtext/files/patch-xjtext_main.c
Pawel Pekala fa060b6562 - Unbreak
- Convert to OptionsNG
- Trim Makefile headers
- Mark MAKE_JOBS_SAFE

PR:		ports/172024
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
Feature safe:	yes
2012-10-13 15:59:53 +00:00

18 lines
609 B
C

--- xjtext-main.c.orig 1999-09-04 22:45:16.000000000 +0900
+++ xjtext-main.c 2012-09-11 04:23:11.000000000 +0900
@@ -3,13 +3,13 @@
xJTextWindow* XWin;
char FileName[256];
-main (int ArgCnt,char** ArgVal)
+int main (int ArgCnt,char** ArgVal)
{
if(ArgCnt<2){ yyin=stdin;strcpy(FileName,"stdin");}
else
{
if(NULL==(yyin=fopen(ArgVal[1],"r")))
- { cerr<<form("Can't open the file named \"%s\".\n",ArgVal[1]);exit(0);}
+ { cerr<<"Can't open the file named \"%s\".\n",ArgVal[1];exit(0);}
strcpy(FileName,ArgVal[1]);
}
XWin = new xJTextWindow