1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/math/snns/files/patch-tools__sources__pat_sel.c
Marcelo Araujo b2b8aabaa8 - Fix build using CLANG.
- Add MAKE_JOBS_UNSAFE.

PR:		ports/175015
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
2013-02-04 08:52:19 +00:00

21 lines
609 B
C

--- tools/sources/pat_sel.c.orig 2008-04-21 16:56:08.000000000 +0900
+++ tools/sources/pat_sel.c 2012-10-24 04:43:51.000000000 +0900
@@ -58,7 +58,7 @@
UPDATE :
******************************************************************************/
-void main (int argc, char *argv[])
+int main (int argc, char *argv[])
{
int pat_set, tot_pat_num;
@@ -88,7 +88,7 @@
if(krui_loadNewPatterns(argv[2],&pat_set) != 0 /*KRERR_NO_ERROR*/){
fprintf(stderr, "error: can't read file %s\n", argv[2]) ;
fclose (in_no_file) ;
- return ;
+ return 0;
}
tot_pat_num = krui_getNoOfPatterns();