From 588b3ae92f2afeda14e9c0b76f11076aac3b9fd8 Mon Sep 17 00:00:00 2001 From: nhmall Date: Mon, 10 Jun 2024 10:57:59 -0400 Subject: [PATCH] replace some leading tabs that had crept in --- include/optlist.h | 6 +++--- include/winprocs.h | 2 +- src/allmain.c | 2 +- src/calendar.c | 2 +- src/do_wear.c | 2 +- src/files.c | 2 +- src/makemon.c | 4 ++-- src/nhlua.c | 2 +- src/options.c | 2 +- src/report.c | 6 +++--- src/uhitm.c | 2 +- 11 files changed, 16 insertions(+), 16 deletions(-) diff --git a/include/optlist.h b/include/optlist.h index 1a3235822..00b954c60 100644 --- a/include/optlist.h +++ b/include/optlist.h @@ -237,13 +237,13 @@ static int optfn_##a(int, int, boolean, char *, char *); #ifdef CRASHREPORT NHOPTC(crash_email, Advanced, PL_NSIZ, opt_in, set_in_game, No, Yes, No, No, NoAlias, - "email address for reporting") + "email address for reporting") NHOPTC(crash_name, Advanced, PL_NSIZ, opt_in, set_in_game, No, Yes, No, No, NoAlias, - "your name for reporting") + "your name for reporting") NHOPTC(crash_urlmax, Advanced, PL_NSIZ, opt_in, set_in_game, No, Yes, No, No, NoAlias, - "length of longest url we can generate") + "length of longest url we can generate") #endif #ifdef CURSES_GRAPHICS NHOPTC(cursesgraphics, Advanced, 70, opt_in, set_in_config, diff --git a/include/winprocs.h b/include/winprocs.h index 13f3f521b..9f94e02cc 100644 --- a/include/winprocs.h +++ b/include/winprocs.h @@ -16,7 +16,7 @@ enum wp_ids { wp_tty = 1, wp_X11, wp_Qt, wp_mswin, wp_curses, #ifdef OUTDATED_STUFF wp_mac, wp_Gem, wp_Gnome, wp_amii, wp_amiv, #endif - wp_trace // XXX do we need this? should chainin/out get an id? TBD + wp_trace // XXX do we need this? should chainin/out get an id? TBD }; /* NB: this MUST match chain_procs below */ diff --git a/src/allmain.c b/src/allmain.c index eb003a4f1..86a0aeb9e 100644 --- a/src/allmain.c +++ b/src/allmain.c @@ -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; diff --git a/src/calendar.c b/src/calendar.c index 857232782..5a5287b2a 100644 --- a/src/calendar.c +++ b/src/calendar.c @@ -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", diff --git a/src/do_wear.c b/src/do_wear.c index d67921e8e..67c059ef5 100644 --- a/src/do_wear.c +++ b/src/do_wear.c @@ -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 " : "", diff --git a/src/files.c b/src/files.c index 5a39296cd..5771bc118 100644 --- a/src/files.c +++ b/src/files.c @@ -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]; diff --git a/src/makemon.c b/src/makemon.c index cd085da67..aed3a2980 100644 --- a/src/makemon.c +++ b/src/makemon.c @@ -43,8 +43,8 @@ is_home_elemental(struct permonst *ptr) case PM_WATER_ELEMENTAL: return Is_waterlevel(&u.uz); default: - break; - } + break; + } return FALSE; } diff --git a/src/nhlua.c b/src/nhlua.c index f0238bdc5..93816ef83 100644 --- a/src/nhlua.c +++ b/src/nhlua.c @@ -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; diff --git a/src/options.c b/src/options.c index 117278205..0c05ae9ad 100644 --- a/src/options.c +++ b/src/options.c @@ -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; } diff --git a/src/report.c b/src/report.c index aecca650e..2d4eae979 100644 --- a/src/report.c +++ b/src/report.c @@ -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; diff --git a/src/uhitm.c b/src/uhitm.c index 39adc1649..e9062acb9 100644 --- a/src/uhitm.c +++ b/src/uhitm.c @@ -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 *,