From 769d324c99aab129148bd25f5f663ef441287d86 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 13 Jan 2015 20:07:13 +0100 Subject: networkd: make IP forwarding for IPv4 and IPv6 individually configurable --- src/shared/util.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/shared/util.h') 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 : ""; } -- cgit v1.2.3-54-g00ecf