mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue