summaryrefslogtreecommitdiff
path: root/src/qmail-showctl.c
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-03 19:03:11 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-03 19:03:11 +0200
commit20b85c03e751b4876fa3c92040464e483172b746 (patch)
tree734fadbfdbc143ec4465093857f4c239448715e0 /src/qmail-showctl.c
parenta6a7d6ce079cabdaf2fa502b2e2cf15e5428ac6f (diff)
manual format adjustment
Diffstat (limited to 'src/qmail-showctl.c')
-rw-r--r--src/qmail-showctl.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/qmail-showctl.c b/src/qmail-showctl.c
index 7aaeb95..6339707 100644
--- a/src/qmail-showctl.c
+++ b/src/qmail-showctl.c
@@ -74,12 +74,13 @@ void do_str(char *fn, int flagme, char *def, char *pre)
if (!stralloc_copys(&line, def)) {
buffer_puts(buffer_1, "Oops! Out of memory.\n");
break;
- };
- if (flagme && meok)
+ }
+ if (flagme && meok) {
if (!stralloc_copy(&line, &me)) {
buffer_puts(buffer_1, "Oops! Out of memory.\n");
break;
- };
+ }
+ }
case 1:
buffer_puts(buffer_1, pre);
safeput(line.s, line.len);
@@ -106,7 +107,7 @@ int do_lst(char *fn, char *def, char *pre, char *post)
case 1:
buffer_puts(buffer_1, "\n");
i = 0;
- for (j = 0; j < line.len; ++j)
+ for (j = 0; j < line.len; ++j) {
if (!line.s[j]) {
buffer_puts(buffer_1, pre);
safeput(line.s + i, j - i);
@@ -114,6 +115,7 @@ int do_lst(char *fn, char *def, char *pre, char *post)
buffer_puts(buffer_1, "\n");
i = j + 1;
}
+ }
return 1;
default: buffer_puts(buffer_1, "Oops! Trouble reading this file.\n"); return -1;
}