* src/ttt-server.c: (main): Don't assign to stderr which is
apparently an invalid lvalue on Mac OS X.
* src/x.h:
* src/x.c: (xfreopen): Change return type to void.
* src/ttt-board.c: (ttt_board_to_string): Add missing return
statement.
+2005-11-11 Carl Worth <cworth@pippin.local>
+
+ * src/ttt-server.c: (main): Don't assign to stderr which is
+ apparently an invalid lvalue on Mac OS X.
+
+ * src/x.h:
+ * src/x.c: (xfreopen): Change return type to void.
+
+ * src/ttt-board.c: (ttt_board_to_string): Add missing return
+ statement.
+
2005-11-11 Carl Worth <cworth@cworth.org>
* configure.in: Key off of src/ttt.h instead of src/ttt.c which no
ttt_board_to_string (ttt_board_t *board)
{
/* XXX: NYI */
+ return NULL;
}
/* Write a string representation of a board to the provided file.
ttt_args_parse (&args, argc, argv);
if (args.log_file)
- stderr = xfreopen (args.log_file, "a", stderr);
+ xfreopen (args.log_file, "a", stderr);
socket = ttt_socket_create_server (args.host, args.port);
return ret;
}
-FILE *
+void
xfreopen (const char *path, const char *mode, FILE *stream)
{
FILE *ret;
path, strerror (errno));
exit (1);
}
-
- return ret;
}
char *
FILE *
xfdopen (int filedes, const char *mode);
-FILE *
+void
xfreopen (const char *path, const char *mode, FILE *stream);
char *