(wrmakesrc,wripglob,wrgamesdef,info,apro,mobupdate,rea,turn

upda,ef_open,logerror,emp_config,match_user,show_motd,gamedown,
typed_wu,delete_old_announcements,mobility_check,mobility_init,
allocate_memory,write_newcap_script,main,files,fairland,doconfig,)
[_WIN32]: Switchback to default mode of text.
"t" (text) is not included the ISO/ANSI C standard but "b" (binary)
is included.
This commit is contained in:
Ron Koenderink 2005-03-02 12:47:15 +00:00
parent d4af51c9e2
commit 55e6aca9e0
17 changed files with 28 additions and 41 deletions

View file

@ -113,10 +113,6 @@ main(int argc, char **argv)
int op;
s_char tbuf[256];
#if defined(_WIN32)
_fmode = _O_BINARY;
#endif
mainpid = getpid();
#if defined(_WIN32)

View file

@ -52,7 +52,7 @@ mobility_check(void *unused)
while (1) {
time(&now);
/* logerror("Updating timestamp file at %s", ctime(&now));*/
if ((fp = fopen(timestampfil, "r+")) == NULL) {
if ((fp = fopen(timestampfil, "rb+")) == NULL) {
logerror("Unable to edit timestamp file.");
continue;
}
@ -97,7 +97,7 @@ mobility_init(void)
mobility */
time(&now);
if ((fp = fopen(timestampfil, "r+")) == NULL) {
if ((fp = fopen(timestampfil, "rb+")) == NULL) {
logerror("Unable to edit timestamp file.");
/* FIXME safe to continue? */
} else {