summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2017-07-25 08:32:34 +0900
committerSven Eden <yamakuzure@gmx.net>2017-08-10 10:07:19 +0200
commit6a221b85b139cf08cce1ab83e38b7ace88937a68 (patch)
treeeb680c4f786b2bdad81aa3632eb86d255936ec3e
parent930f77030206fbac686ecbbb65493bc724322f4f (diff)
basic: cosmetic changes (#6440)
-rw-r--r--src/basic/string-util.c2
-rw-r--r--src/basic/string-util.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/basic/string-util.c b/src/basic/string-util.c
index 262e8c0db..4bfce5a5d 100644
--- a/src/basic/string-util.c
+++ b/src/basic/string-util.c
@@ -546,7 +546,7 @@ char *ellipsize(const char *s, size_t length, unsigned percent) {
return ellipsize_mem(s, strlen(s), length, percent);
}
-bool nulstr_contains(const char*nulstr, const char *needle) {
+bool nulstr_contains(const char *nulstr, const char *needle) {
const char *i;
if (!nulstr)
diff --git a/src/basic/string-util.h b/src/basic/string-util.h
index e8c2fc6dd..46df7e42c 100644
--- a/src/basic/string-util.h
+++ b/src/basic/string-util.h
@@ -166,7 +166,7 @@ bool string_has_cc(const char *p, const char *ok) _pure_;
char *ellipsize_mem(const char *s, size_t old_length_bytes, size_t new_length_columns, unsigned percent);
char *ellipsize(const char *s, size_t length, unsigned percent);
-bool nulstr_contains(const char*nulstr, const char *needle);
+bool nulstr_contains(const char *nulstr, const char *needle);
char* strshorten(char *s, size_t l);