From: David Herrmann Date: Thu, 2 Oct 2014 14:36:09 +0000 (+0200) Subject: terminal: make utf8 decoder return length X-Git-Tag: v217~345 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=f1f5b2a3bdc3178d57c4088a7cd7758afaeba9cb;hp=f1f5b2a3bdc3178d57c4088a7cd7758afaeba9cb terminal: make utf8 decoder return length Lets return the parsed length in term_utf8_decode() instead of a buffer pointer. Store the pointer in the passed argument. This makes it adhere to the systemd coding-style, were we always avoid returning pointers, but store them in output arguments. In this case, the storage is not allocated, so it doesn't fit 100% to this idiom, but still looks much nicer. ---