[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnugo-devel] gnugo 3.6-pre3 patch: patterns/transpat.c
From: |
Thien-Thi Nguyen |
Subject: |
[gnugo-devel] gnugo 3.6-pre3 patch: patterns/transpat.c |
Date: |
Thu, 04 Nov 2004 15:39:17 +0100 |
2004-11-04 Thien-Thi Nguyen <address@hidden> (tiny change)
Include <stdlib.h>.
(main): Use `EXIT_FAILURE'.
diff -u transpat.c.ORIG transpat.c
--- transpat.c.ORIG Tue May 25 05:14:06 2004
+++ transpat.c Thu Nov 4 15:37:39 2004
@@ -22,6 +22,7 @@
#include "patlib.h"
#include <stdio.h>
+#include <stdlib.h>
#include <fnmatch.h>
/*
@@ -138,7 +139,7 @@
command is one of 'flipleft' or 'normalize'\n\
patnames is a standard glob pattern (like EE*)\n\
patfilename is an optional filename\n", argv[0]);
- exit(1);
+ exit(EXIT_FAILURE);
}
/* Get the command */
@@ -154,7 +155,7 @@
if (argc == 4) {
if ((infile = fopen(argv[3], "r")) == 0) {
perror(argv[3]);
- exit(1);
+ exit(EXIT_FAILURE);
}
}
else
@@ -181,7 +182,7 @@
}
else {
printf("error\n");
- exit(1);
+ exit(EXIT_FAILURE);
}
} while (val != 0 && !feof(infile));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnugo-devel] gnugo 3.6-pre3 patch: patterns/transpat.c,
Thien-Thi Nguyen <=