diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-05-11 01:55:46 +0900 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2018-08-24 16:47:08 +0200 |
commit | 8b4d0d12ef7b9eada50187fd80274ba9e80aad47 (patch) | |
tree | 27694b64211f4a64667c80178fe5b378ba640583 | |
parent | 47fc0bb4dc80cbd9e14680ea917845b76fc9cbc7 (diff) |
string-util: rename strdash_if_empty() to empty_to_dash()
-rw-r--r-- | src/basic/string-util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/string-util.h b/src/basic/string-util.h index 4270d3091..56a64d7f5 100644 --- a/src/basic/string-util.h +++ b/src/basic/string-util.h @@ -59,7 +59,7 @@ static inline const char *empty_to_null(const char *p) { } #if 0 /// UNNEEDED by elogind -static inline const char *strdash_if_empty(const char *str) { +static inline const char *empty_to_dash(const char *str) { return isempty(str) ? "-" : str; } #endif // 0 |