chiark / gitweb /
util: Fix signedness error in lines(), match implementations
authorColin Walters <walters@verbum.org>
Thu, 1 Jan 2015 19:57:08 +0000 (14:57 -0500)
committerLennart Poettering <lennart@poettering.net>
Mon, 5 Jan 2015 02:05:15 +0000 (03:05 +0100)
commit9bc5cd6d74d6efc7769d6a25b21e451dae39fe76
tree06579414cb168e52206520ceaa66ef43f288ebfa
parent6fc25464bf64b5df2f0efda70bc5c497914108c8
util: Fix signedness error in lines(), match implementations

Regression introduced by ed757c0cb03eef50e8d9aeb4682401c3e9486f0b

Mirror the implementation of columns(), since the fd_columns()
functions returns a negative integer for errors.

Also fix columns() to return the unsigned variable instead of the
signed intermediary (they're the same, but better to be explicit).
src/shared/util.c