Introduction
Introduction Statistics Contact Development Disclaimer Help
minor code-style - saait - the most boring static page generator
git clone git://git.codemadness.org/saait
Log
Files
Refs
README
LICENSE
---
commit 3efe93e903986896139eac808fc6329a80b7b496
parent 015bc6ccd23e3e1ac78b6373e26d648bff4d08e0
Author: Hiltjo Posthuma <[email protected]>
Date: Sun, 26 May 2019 01:59:08 +0200
minor code-style
Diffstat:
M saait.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/saait.c b/saait.c
@@ -171,7 +171,7 @@ setvar(struct variable **vars, struct variable *var, int ov…
}
/* search: set or append */
- for (p = NULL, v = *vars; v; v = v->next) {
+ for (p = NULL, v = *vars; v; v = v->next, p = v) {
if (!strcmp(var->key, v->key)) {
if (!override)
return;
@@ -192,7 +192,6 @@ setvar(struct variable **vars, struct variable *var, int ov…
v->next = var;
return;
}
- p = v;
}
}
@@ -402,7 +401,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
/* global config */
global = readconfig(configfile);
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.