chiark / gitweb /
terminal: make utf8 decoder return length
authorDavid Herrmann <dh.herrmann@gmail.com>
Thu, 2 Oct 2014 14:36:09 +0000 (16:36 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Fri, 3 Oct 2014 13:57:00 +0000 (15:57 +0200)
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.


No differences found