commit bae33de2dbe1362b24774f94a181f99729349189
parent f80732a4dda1ea989a6a29650af0d3e41f35b866
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 17 Nov 2019 18:41:58 +0100
build-page: minor tweaks (no functional difference)
Diffstat:
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/build-page.c b/build-page.c
@@ -137,7 +137,7 @@ spawn_wait(char **argv)
}
int
-oneline(char *buf, size_t bufsiz, char const *path)
+oneline(char *buf, size_t bufsiz, const char *path)
{
char *r;
FILE *fp;
@@ -165,8 +165,9 @@ oneline(char *buf, size_t bufsiz, char const *path)
void
print_name(const char *name)
{
- char c;
- for (; c = *name; ++name)
+ int c;
+
+ for (; (c = *name); ++name)
putchar((c == '_' || c == '-') ? ' ' : c);
}