diff options
author | Marcelo Araujo <araujo@FreeBSD.org> | 2013-02-04 08:52:19 +0000 |
---|---|---|
committer | Marcelo Araujo <araujo@FreeBSD.org> | 2013-02-04 08:52:19 +0000 |
commit | b2b8aabaa89ecd00044d0270aa39ab2feab5fe44 (patch) | |
tree | cc7ccd42e107b1ebd6afbdf7986a533c0c812ef0 /math/snns/files/patch-tools__sources__pat_sel_simple.c | |
parent | - Fix build using CLANG. (diff) |
- Fix build using CLANG.
- Add MAKE_JOBS_UNSAFE.
PR: ports/175015
Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Diffstat (limited to 'math/snns/files/patch-tools__sources__pat_sel_simple.c')
-rw-r--r-- | math/snns/files/patch-tools__sources__pat_sel_simple.c | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/math/snns/files/patch-tools__sources__pat_sel_simple.c b/math/snns/files/patch-tools__sources__pat_sel_simple.c new file mode 100644 index 000000000000..36f5edcca719 --- /dev/null +++ b/math/snns/files/patch-tools__sources__pat_sel_simple.c @@ -0,0 +1,53 @@ +--- tools/sources/pat_sel_simple.c.orig 2008-04-21 16:56:08.000000000 +0900 ++++ tools/sources/pat_sel_simple.c 2012-10-24 04:33:30.000000000 +0900 +@@ -168,7 +168,7 @@ + /* main program */ + /******************************************************************************/ + +-void main (int argc, char *argv[]) ++int main (int argc, char *argv[]) + { + float *output_pattern ; + float *input_pattern ; +@@ -188,28 +188,28 @@ + { + fprintf (stderr, "usage: %s <no_file> <in_pat_file> <out_pat_file>\n", + argv[0]); +- return ; ++ return 0; + } + + + if ((in_no_file = fopen(argv[1], "r")) == (FILE *) NULL) + { + fprintf(stderr, "error: can't read file %s\n", argv[1]) ; +- return ; ++ return 0; + } + + if ((in_pat_file = fopen(argv[2], "r")) == (FILE *) NULL) + { + fprintf(stderr, "error: can't read file %s\n", argv[2]) ; + fclose (in_no_file) ; +- return ; ++ return 0; + } + + if ((out_pat_file = fopen(argv[3], "r")) != (FILE *) NULL) + { + fclose(out_pat_file) ; + fprintf (stderr, "overwrite %s (y/n) ? ", argv[3]) ; +- if (getc(stdin) != 'y') return ; ++ if (getc(stdin) != 'y') return 0; + } + + if ((out_pat_file = fopen(argv[3], "w")) == (FILE *) NULL) +@@ -217,7 +217,7 @@ + fprintf(stderr, "error: can't create file %s\n", argv[3]) ; + fclose (in_no_file) ; + fclose (in_pat_file) ; +- return ; ++ return 0; + } + + |