edits of no significance

This commit is contained in:
anon 2024-11-12 14:40:19 +01:00
parent 80fa717307
commit 6489d782a1
3 changed files with 9 additions and 8 deletions

View File

@ -497,7 +497,8 @@ static int invnewterm(void) {
* 'to' substring (which must be of the exact same length), and the function * 'to' substring (which must be of the exact same length), and the function
* returns 0. Otherwise, returns -1. * returns 0. Otherwise, returns -1.
*/ */
static int invflipname(char *invname, const char *from, const char *to) { static
int invflipname(char *invname, const char *from, const char *to) {
char *temp, *i = NULL; char *temp, *i = NULL;
assert(strlen(from) == strlen(to)); assert(strlen(from) == strlen(to));
@ -513,7 +514,8 @@ static int invflipname(char *invname, const char *from, const char *to) {
/* small helper function to centralize handling of binary opening /* small helper function to centralize handling of binary opening
* for reading, and use of the 'stat" flag */ * for reading, and use of the 'stat" flag */
static FILE *open_for_reading(char *name, int stat) { static
FILE *open_for_reading(char *name, int stat) {
return vpfopen(name, ((stat == 0) ? "rb" : "r+b")); return vpfopen(name, ((stat == 0) ? "rb" : "r+b"));
} }

View File

@ -134,20 +134,19 @@ void cannotwrite(const char *const file) {
/* set up the digraph character tables for text compression */ /* set up the digraph character tables for text compression */
static static
void initcompress(void) { void initcompress(void) {
int i;
if(compress == true) { if(compress == true) {
for(i = 0; i < 16; ++i) { for(int i = 0; i < 16; i++) {
dicode1[(unsigned char)(dichar1[i])] = i * 8 + 1; dicode1[(unsigned char)(dichar1[i])] = i * 8 + 1;
} }
for(i = 0; i < 8; ++i) { for(int i = 0; i < 8; i++) {
dicode2[(unsigned char)(dichar2[i])] = i + 1; dicode2[(unsigned char)(dichar2[i])] = i + 1;
} }
} }
} }
/* skip the list in the cross-reference file */ /* skip the list in the cross-reference file */
static void skiplist(FILE *oldrefs) { static
void skiplist(FILE *oldrefs) {
int i; int i;
if(fscanf(oldrefs, "%d", &i) != 1) { if(fscanf(oldrefs, "%d", &i) != 1) {

View File

@ -41,7 +41,7 @@ const char *basename(const char *path) {
const char *s; const char *s;
if((s = strrchr(path, '/')) != 0) { return (s + 1); } if((s = strrchr(path, '/')) != 0) { return (s + 1); }
return (path); return path;
} }
/* get the requested path components */ /* get the requested path components */