chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
networkd: make IP forwarding for IPv4 and IPv6 individually configurable
[elogind.git]
/
src
/
shared
/
util.h
diff --git
a/src/shared/util.h
b/src/shared/util.h
index b337249faa88c868adae260a130ed94d7fd3e769..850019ab9d46e45a61c771519078bd750bab7a2a 100644
(file)
--- 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 : "";
}