reindentation

git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@80 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
Joshua Kwan 2004-01-04 22:49:29 +00:00
parent 1adf4dbb69
commit 4aed9485f4
2 changed files with 40 additions and 39 deletions

View File

@ -1142,7 +1142,7 @@ purge_stale_locks (void)
size_t len;
int seconds = 0;
if (!strcmp(dent->d_name, ".") || !strcmp(dent->d_name, ".."))
if (!strcmp (dent->d_name, ".") || !strcmp (dent->d_name, ".."))
continue;
colon = strchr (dent->d_name, ':');
@ -1153,10 +1153,10 @@ purge_stale_locks (void)
if (strncmp (dent->d_name, me->username, colon - dent->d_name))
continue;
len = strlen(dent->d_name) + ARRAY_SIZE(LOC_INPROGRESSDIR) + 1;
len = strlen (dent->d_name) + ARRAY_SIZE (LOC_INPROGRESSDIR) + 1;
fn = malloc (len);
snprintf(fn, len, "%s%s", LOC_INPROGRESSDIR, dent->d_name);
snprintf (fn, len, "%s%s", LOC_INPROGRESSDIR, dent->d_name);
if (!(ipfile = fopen (fn, "r")))
graceful_exit (202);
@ -1168,7 +1168,8 @@ purge_stale_locks (void)
clear ();
drawbanner (1, 1);
mvaddstr (3, 1, "There is a stale Nethack process, attempting to recover...");
mvaddstr (3, 1,
"There is a stale Nethack process, attempting to recover...");
refresh ();
pid = atoi (buf);
@ -1195,10 +1196,10 @@ purge_stale_locks (void)
}
else
{
endwin();
fprintf(stderr, "Sorry, no nethack for you now, please "
endwin ();
fprintf (stderr, "Sorry, no nethack for you now, please "
"contact the admin.\n");
graceful_exit(1);
graceful_exit (1);
}
}
}