diff options
author | Jonathan Lebon <jlebon@users.noreply.github.com> | 2017-09-25 15:56:57 -0400 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2017-09-25 21:56:57 +0200 |
commit | 35207e259ef44f62faf71acc4bbc7d43311a4583 (patch) | |
tree | bf62199bc6e306f40237129753061af70ad8be79 /src/basic/string-util.h | |
parent | 3594f8014416dc4a1c3777636578d28a66361443 (diff) | |
download | systemd-35207e259ef44f62faf71acc4bbc7d43311a4583.tar.gz |
string-util: use size_t for strjoina macro (#6914)
`strlen` returns a `size_t` and `alloca` expects a `size_t`.
Diffstat (limited to 'src/basic/string-util.h')
-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 34eb952ce9..c511aeee68 100644 --- a/src/basic/string-util.h +++ b/src/basic/string-util.h @@ -120,7 +120,7 @@ char *strjoin_real(const char *x, ...) _sentinel_; ({ \ const char *_appendees_[] = { a, __VA_ARGS__ }; \ char *_d_, *_p_; \ - int _len_ = 0; \ + size_t _len_ = 0; \ unsigned _i_; \ for (_i_ = 0; _i_ < ELEMENTSOF(_appendees_) && _appendees_[_i_]; _i_++) \ _len_ += strlen(_appendees_[_i_]); \ |