projects
/
oweals
/
firewall3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d8d3d8
)
Fix building with newer toolchains
author
Steven Barth
<steven@midlink.org>
Sun, 13 Apr 2014 16:33:39 +0000
(18:33 +0200)
committer
Steven Barth
<steven@midlink.org>
Mon, 14 Apr 2014 06:47:22 +0000
(08:47 +0200)
Signed-off-by: Steven Barth <steven@midlink.org>
main.c
patch
|
blob
|
history
utils.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index bf0830b867cf37ed719313c9a2ae1c20ad63c67a..bc1cfd73c3a885803dc8901e9c9b8b8d93a57591 100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-479,7
+479,7
@@
int main(int argc, char **argv)
break;
case 'q':
- freopen("/dev/null", "w", stderr);
+ if (freopen("/dev/null", "w", stderr)) {}
break;
case 'h':
@@
-514,7
+514,7
@@
int main(int argc, char **argv)
#endif
}
-
freopen("/dev/null", "w", stderr)
;
+
if (freopen("/dev/null", "w", stderr)) {}
;
cfg_state->disable_ipsets = true;
print_family = family;
diff --git
a/utils.c
b/utils.c
index 7e5ae450d3172e2359d87391ff336f65155ba2ac..8ed52be4814dff3aa885cb6646b0c10b10846fcc 100644
(file)
--- a/
utils.c
+++ b/
utils.c
@@
-697,7
+697,7
@@
fw3_hotplug(bool add, void *zone, void *device)
close(0);
close(1);
close(2);
-
chdir("/")
;
+
if (chdir("/")) {}
;
clearenv();
setenv("ACTION", add ? "add" : "remove", 1);