summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Lebon <jlebon@redhat.com>2017-09-25 15:38:25 +0000
committerColin Walters <walters@verbum.org>2017-09-25 11:55:43 -0400
commit292cfc807e1662d5f6fe16f4d372e97973956955 (patch)
treeedfa654e2148c8ee7f37de44c80e5417f6ea6de9
parent5ee2f1be7a10a3644168d7f9e6281d4c5bcabe87 (diff)
downloadlibglnx-292cfc807e1662d5f6fe16f4d372e97973956955.tar.gz
macros: use size_t for glnx_strjoina len
This was in my workspace for a while. `strlen` returns a `size_t` and `alloca` expects a `size_t`.
-rw-r--r--glnx-macros.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/glnx-macros.h b/glnx-macros.h
index 1d4e175..6d8aca9 100644
--- a/glnx-macros.h
+++ b/glnx-macros.h
@@ -38,7 +38,7 @@ G_BEGIN_DECLS
({ \
const char *_appendees_[] = { a, __VA_ARGS__ }; \
char *_d_, *_p_; \
- int _len_ = 0; \
+ size_t _len_ = 0; \
unsigned _i_; \
for (_i_ = 0; _i_ < G_N_ELEMENTS(_appendees_) && _appendees_[_i_]; _i_++) \
_len_ += strlen(_appendees_[_i_]); \