forked from github/server
gmtool compilation problem fixed.
This commit is contained in:
parent
e373a5af9e
commit
3b180b2980
|
@ -191,8 +191,10 @@ read_args(int argc, char **argv)
|
||||||
}
|
}
|
||||||
if (turn==-1) {
|
if (turn==-1) {
|
||||||
char fname[MAX_PATH];
|
char fname[MAX_PATH];
|
||||||
|
FILE * F;
|
||||||
|
|
||||||
sprintf(fname, "%s/turn", basepath());
|
sprintf(fname, "%s/turn", basepath());
|
||||||
FILE * F = fopen(fname, "r+");
|
F = fopen(fname, "r+");
|
||||||
if (F) {
|
if (F) {
|
||||||
fgets(fname, sizeof(fname), F);
|
fgets(fname, sizeof(fname), F);
|
||||||
turn = atoi(fname);
|
turn = atoi(fname);
|
||||||
|
|
Loading…
Reference in New Issue