summaryrefslogtreecommitdiff
path: root/src/basic/string-util.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-05-11 01:55:46 +0900
committerSven Eden <yamakuzure@gmx.net>2018-08-24 16:47:08 +0200
commit8b4d0d12ef7b9eada50187fd80274ba9e80aad47 (patch)
tree27694b64211f4a64667c80178fe5b378ba640583 /src/basic/string-util.h
parent47fc0bb4dc80cbd9e14680ea917845b76fc9cbc7 (diff)
string-util: rename strdash_if_empty() to empty_to_dash()
Diffstat (limited to 'src/basic/string-util.h')
-rw-r--r--src/basic/string-util.h2
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