ubusd: fix issue caused by an implicit cast
authorMihai Richard <mihairichard@live.com>
Thu, 19 Jan 2017 12:51:04 +0000 (12:51 +0000)
committerFelix Fietkau <nbd@nbd.name>
Fri, 20 Jan 2017 10:27:00 +0000 (11:27 +0100)
commit97ac89f9727d4fae1b2d63d2fc3b59e0d5d4bf65
tree8958a043a9e4dadc6f6837cf9ca0e816ba94f7fc
parentad5333a73b222e95458e05d52f349194df9ae7c6
ubusd: fix issue caused by an implicit cast

An -1 returned by ubus_msg_writev() will be interpreted as
UINT_MAX during a check to see how much data had could be
written on the socket.

Because sizeof() will return size_t it will promote the
comparsion to unsigned

Signed-off-by: Mihai Richard <mihairichard@live.com>
ubusd.c