convert some tabs to spaces in util

This commit is contained in:
nhmall
2025-02-26 21:51:44 -05:00
parent 6ff2bf0993
commit 56ebf05324
2 changed files with 14 additions and 14 deletions

View File

@@ -339,7 +339,7 @@ do_makedefs(char *options)
rafile(*options);
break;
#if defined(OLD_MAKEDEFS_OPTIONS)
case 'o':
case 'o':
case 'O':
do_objs();
break;
@@ -361,7 +361,7 @@ do_makedefs(char *options)
do_questtxt();
break;
#else
case 'o': case 'O': case 'e': case 'E': case 'v': case 'V':
case 'o': case 'O': case 'e': case 'E': case 'v': case 'V':
case 'p': case 'P': case 'q': case 'Q':
Fprintf(stderr, "Old makedefs option.\n"
"Rebuild makedefs with '-DOLD_MAKEDEFS_OPTIONS'"
@@ -393,7 +393,7 @@ oldfunctionality(char sought)
char ucoflet;
const char *ofnam;
} ofn[] = {
{ 'e', 'E', DGN_O_FILE },
{ 'e', 'E', DGN_O_FILE },
{ 'o', 'O', ONAME_FILE },
{ 'p', 'P', MONST_FILE },
{ 'q', 'Q', QTXT_O_FILE },
@@ -661,15 +661,15 @@ do_ext_makedefs(int argc, char **argv)
}
CONTINUE;
}
IS_OPTION("grep-defined"){
struct grep_var *p;
IS_OPTION("grep-defined"){
struct grep_var *p;
CONSUME;
p = grepsearch(argv[0]);
// NB: Exit status is ready for the shell:
// 0=defined, 1=not defined
makedefs_exit(!(p && p->is_defined));
}
CONSUME;
p = grepsearch(argv[0]);
// NB: Exit status is ready for the shell:
// 0=defined, 1=not defined
makedefs_exit(!(p && p->is_defined));
}
#ifdef notyet
IS_OPTION("help") {
}

View File

@@ -357,12 +357,12 @@ restore_savefile(char *basename)
if (write(sfd, (genericptr_t) &levc, sizeof levc)
!= sizeof levc) {
res = -1;
} else {
} else {
if (!copy_bytes(lfd, sfd)) {
Fprintf(stderr, "file copy failed!\n");
exit(EXIT_FAILURE);
}
}
}
}
Close(lfd);
(void) unlink(lock);
}