chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libsystemd-bus: true/false instead of yes/no in msg dump
[elogind.git]
/
src
/
shared
/
util.h
diff --git
a/src/shared/util.h
b/src/shared/util.h
index dd51e8930639efe0993c098aecb3ee4009238b3c..1d178260cbe2d8e702fe98afebd268736448ab9c 100644
(file)
--- a/
src/shared/util.h
+++ b/
src/shared/util.h
@@
-92,6
+92,10
@@
static inline const char* yes_no(bool b) {
return b ? "yes" : "no";
}
+static inline const char* true_false(bool b) {
+ return b ? "true" : "false";
+}
+
static inline const char* strempty(const char *s) {
return s ? s : "";
}