diff options
author | Thomas Voss <thomas.voss@humanwave.nl> | 2024-01-18 17:06:59 +0100 |
---|---|---|
committer | Thomas Voss <thomas.voss@humanwave.nl> | 2024-01-18 17:06:59 +0100 |
commit | 5344ff3d5f58593f749a2b36cf11b5d4f8485d88 (patch) | |
tree | c1ecdacb5f5e82c3a86f81ee411f305b4997bf5f /make.c | |
parent | db01ab3064d23aa64321ff9f8c2ecadc07628fbf (diff) |
Update cbs.h again
Diffstat (limited to 'make.c')
-rw-r--r-- | make.c | 15 |
1 files changed, 6 insertions, 9 deletions
@@ -80,21 +80,19 @@ main(int argc, char **argv) cmdprc(c); } } else { - struct strv cc = {0}; - struct strv cflags = {0}; + struct strv sv = {0}; - env_or_default(&cc, "CC", CC); + env_or_default(&sv, "CC", CC); if (dflag) - env_or_default(&cflags, "CFLAGS", CFLAGS, CFLAGS_DEBUG); + env_or_default(&sv, "CFLAGS", CFLAGS, CFLAGS_DEBUG); else - env_or_default(&cflags, "CFLAGS", CFLAGS, CFLAGS_RELEASE); + env_or_default(&sv, "CFLAGS", CFLAGS, CFLAGS_RELEASE); for (int i = 0; i < 2; i++) { char buf[] = "-DGIT_GRAB=X"; buf[sizeof(buf) - 2] = i + '0'; - cmdaddv(&c, cc.buf, cc.len); - cmdaddv(&c, cflags.buf, cflags.len); + cmdaddv(&c, sv.buf, sv.len); cmdadd(&c, buf); if (!Pflag) { struct strv pc = {0}; @@ -109,8 +107,7 @@ main(int argc, char **argv) cmdprc(c); } - strvfree(&cc); - strvfree(&cflags); + strvfree(&sv); } return EXIT_SUCCESS; |