X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Futil.h;h=1d178260cbe2d8e702fe98afebd268736448ab9c;hb=5232c42ec43e86f90a850d965a33bb413b9e5a00;hp=dd51e8930639efe0993c098aecb3ee4009238b3c;hpb=0d647f7f73fa17074a1df81e2bdd00877554e436;p=elogind.git diff --git a/src/shared/util.h b/src/shared/util.h index dd51e8930..1d178260c 100644 --- 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 : ""; }