replace some leading tabs that had crept in

This commit is contained in:
nhmall
2024-06-10 10:57:59 -04:00
parent bc897ac69c
commit 588b3ae92f
11 changed files with 16 additions and 16 deletions

View File

@@ -952,7 +952,7 @@ argcheck(int argc, char *argv[], enum earlyarg e_arg)
for (idx = 0; idx < SIZE(earlyopts); idx++) {
if (earlyopts[idx].e == e_arg){
break;
}
}
}
if (idx >= SIZE(earlyopts) || argc < 1)
return 0;

View File

@@ -162,7 +162,7 @@ time_from_yyyymmddhhmmss(char *buf)
timeresult = mktime(&t);
}
if (timeresult == (time_t) -1)
;
;
#if 0
TODO: set_debugpline1, debugpline1 -> function pointer
debugpline1("time_from_yyyymmddhhmmss(%s) would have returned -1",

View File

@@ -2496,7 +2496,7 @@ glibr(void)
} else if (wastwoweap) {
/* preceding msg was about non-dominant hand */
which = URIGHTY ? "right " : "left ";
}
}
pline("%s %s%s %s%s from your %s%s.",
!strncmp(thiswep, "corpse", 6) ? "The" : "Your",
otherwep ? "other " : "", thiswep, xfl ? "also " : "",

View File

@@ -1923,7 +1923,7 @@ make_lockname(const char *filename UNUSED_conditional, char *lockname)
/* lock a file */
boolean
lock_file(const char *filename, int whichprefix,
int retryct UNUSED_conditional)
int retryct UNUSED_conditional)
{
#ifndef USE_FCNTL
char locknambuf[BUFSZ];

View File

@@ -43,8 +43,8 @@ is_home_elemental(struct permonst *ptr)
case PM_WATER_ELEMENTAL:
return Is_waterlevel(&u.uz);
default:
break;
}
break;
}
return FALSE;
}

View File

@@ -2000,7 +2000,7 @@ nhl_pcall_handle(lua_State *L, int nargs, int nresults, const char *name,
nud->name ? nud->name : "(unknown)",
lua_tostring(L, -1));
/* Drop the error. If the caller cares, use nhl_pcall(). */
lua_pop(L, 1);
lua_pop(L, 1);
}
}
return rv;

View File

@@ -8519,7 +8519,7 @@ doset_simple(void)
adjust_menu_promptstyle(WIN_INVEN, &iflags.menu_headings);
if (go.opt_update_basic_palette) {
#ifdef CHANGE_COLOR
change_palette();
change_palette();
#endif
go.opt_update_basic_palette = FALSE;
}

View File

@@ -405,7 +405,7 @@ printf("ShellExecute returned: %p\n",rv); // >32 is ok
if (pid == 0) {
char err[100];
# ifdef CRASHREPORT_EXEC_NOSTDERR
int devnull;
int devnull;
/* Keep the output clean - firefox spews useless errors on
* my system. */
(void) close(2);
@@ -416,9 +416,9 @@ printf("ShellExecute returned: %p\n",rv); // >32 is ok
Sprintf(err, "Can't start " CRASHREPORT ": %s", strerror(errno));
raw_print(err);
# ifdef CRASHREPORT_EXEC_NOSTDERR
(void) close(devnull);
(void) close(devnull);
# endif
exit(1);
exit(1);
} else {
int status;
errno = 0;

View File

@@ -21,7 +21,7 @@ staticfn boolean hitum_cleave(struct monst *, struct attack *) NO_NNARGS;
staticfn boolean double_punch(void);
staticfn boolean hitum(struct monst *, struct attack *) NONNULLARG1;
staticfn void hmon_hitmon_barehands(struct _hitmon_data *,
struct monst *) NONNULLARG12;
struct monst *) NONNULLARG12;
staticfn void hmon_hitmon_weapon_ranged(struct _hitmon_data *, struct monst *,
struct obj *) NONNULLARG123;
staticfn void hmon_hitmon_weapon_melee(struct _hitmon_data *, struct monst *,