Fix trivial coding style breaches

This commit is contained in:
Johan Malm 2022-04-04 20:53:36 +01:00
parent 8e1f115486
commit 5b34c81768
22 changed files with 151 additions and 91 deletions

View file

@ -2,7 +2,6 @@
#include <ctype.h>
#include "common/buf.h"
static void
strip_curly_braces(char *s)
{
@ -45,7 +44,7 @@ buf_expand_shell_variables(struct buf *s)
} else {
/* just add one character at a time */
if (new.alloc <= new.len + 1) {
new.alloc = new.alloc * 3/2 + 16;
new.alloc = new.alloc * 3 / 2 + 16;
new.buf = realloc(new.buf, new.alloc);
}
new.buf[new.len++] = s->buf[i];

View file

@ -95,9 +95,9 @@ find_dir(struct ctx *ctx)
if (!prefix) {
continue;
}
gchar **prefixes;
gchar * *prefixes;
prefixes = g_strsplit(prefix, ":", -1);
for (gchar **p = prefixes; *p; p++) {
for (gchar * *p = prefixes; *p; p++) {
ctx->build_path_fn(ctx, *p, d.path);
if (debug) {
fprintf(stderr, "%s\n", ctx->buf);