mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
Fix trivial coding style breaches
This commit is contained in:
parent
8e1f115486
commit
5b34c81768
22 changed files with 151 additions and 91 deletions
|
|
@ -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];
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue