Skip to content
Snippets Groups Projects
Commit a8b44189 authored by Colin Walters's avatar Colin Walters
Browse files

glnx_strjoina: Cast to result for C++ compatibility

Prep for using C++ in rpm-ostree (temporarily).
parent efcacc4c
Branches
Tags
No related merge requests found
...@@ -52,7 +52,7 @@ G_BEGIN_DECLS ...@@ -52,7 +52,7 @@ G_BEGIN_DECLS
unsigned _i_; \ unsigned _i_; \
for (_i_ = 0; _i_ < G_N_ELEMENTS(_appendees_) && _appendees_[_i_]; _i_++) \ for (_i_ = 0; _i_ < G_N_ELEMENTS(_appendees_) && _appendees_[_i_]; _i_++) \
_len_ += strlen(_appendees_[_i_]); \ _len_ += strlen(_appendees_[_i_]); \
_p_ = _d_ = alloca(_len_ + 1); \ _p_ = _d_ = (char*) alloca(_len_ + 1); \
for (_i_ = 0; _i_ < G_N_ELEMENTS(_appendees_) && _appendees_[_i_]; _i_++) \ for (_i_ = 0; _i_ < G_N_ELEMENTS(_appendees_) && _appendees_[_i_]; _i_++) \
_p_ = stpcpy(_p_, _appendees_[_i_]); \ _p_ = stpcpy(_p_, _appendees_[_i_]); \
*_p_ = 0; \ *_p_ = 0; \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment