]> git.ipfire.org Git - thirdparty/systemd.git/commit
libudev-util: change util_replace_whitespace to return number of chars in dest
authorDan Streetman <ddstreet@ieee.org>
Tue, 3 Jan 2017 19:31:45 +0000 (14:31 -0500)
committerDan Streetman <ddstreet@ieee.org>
Tue, 3 Jan 2017 22:09:46 +0000 (17:09 -0500)
commita9d99b32a34589777e95898dac0597dbfbede4ea
treefb7e69c8da496dcee5b1df62a6d855a24704b2b9
parentdc7dd61de610e9330abe7014860acfa733887d5e
libudev-util: change util_replace_whitespace to return number of chars in dest

Instead of returning 0, which is unhelpful, return the number of chars
copied into the dest string.  This allows callers that care about that
to easily use it, instead of having to calculate the strlen.

No current users of the function check the return value, so this does not
break any existing code; it is used in the following patch.
src/libudev/libudev-util.c