Merge pull request #17324 from keszybz/resolvectl-compat-output

resolvectl compat output
This commit is contained in:
Lennart Poettering
2020-10-22 14:57:41 +02:00
committed by GitHub
9 changed files with 570 additions and 301 deletions
+4
View File
@@ -650,4 +650,8 @@ static inline int __coverity_check_and_return__(int condition) {
_copy; \
})
static inline size_t size_add(size_t x, size_t y) {
return y >= SIZE_MAX - x ? SIZE_MAX : x + y;
}
#include "log.h"
+4
View File
@@ -59,6 +59,10 @@ static inline const char* true_false(bool b) {
return b ? "true" : "false";
}
static inline const char* plus_minus(bool b) {
return b ? "+" : "-";
}
static inline const char* one_zero(bool b) {
return b ? "1" : "0";
}