summaryrefslogtreecommitdiff
path: root/src/shared/util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-01-13 20:07:13 +0100
committerLennart Poettering <lennart@poettering.net>2015-01-13 20:17:07 +0100
commit769d324c99aab129148bd25f5f663ef441287d86 (patch)
treee6d3335e4b7e59f47a248e64e17c507536ce223c /src/shared/util.h
parentdb9fd84944807ebea04363dada761613360fa6f9 (diff)
networkd: make IP forwarding for IPv4 and IPv6 individually configurable
Diffstat (limited to 'src/shared/util.h')
-rw-r--r--src/shared/util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared/util.h b/src/shared/util.h
index b337249faa..850019ab9d 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -143,6 +143,10 @@ static inline const char* true_false(bool b) {
return b ? "true" : "false";
}
+static inline const char* one_zero(bool b) {
+ return b ? "1" : "0";
+}
+
static inline const char* strempty(const char *s) {
return s ? s : "";
}