cgi-io: iron out extra compiler warnings
authorPetr Štetiar <ynezz@true.cz>
Fri, 11 Oct 2019 13:07:17 +0000 (15:07 +0200)
committerJohn Crispin <john@phrozen.org>
Fri, 11 Oct 2019 14:03:54 +0000 (16:03 +0200)
commitbb6cdb804cc4db12cca776f559baa6d989a992ec
treef5aa437b8da4b782eec225ec6d65d92660900428
parent4e7411a8d0a46363f9946bff762eda70d5d5de6c
cgi-io: iron out extra compiler warnings

Fixes following errors:

 main.c:458:37: error: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Werror=sign-compare]
 main.c:463:17: error: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Werror=sign-compare]
 main.c:518:35: error: comparison of integer expressions of different signedness: ‘ssize_t’ {aka ‘long int’} and ‘size_t’ {aka ‘long unsigned int’} [-Werror=sign-compare]
 main.c:157:3: error: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Werror=unused-result]
 main.c:763:3: error: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Werror=unused-result]

Signed-off-by: Petr Štetiar <ynezz@true.cz>
net/cgi-io/Makefile
net/cgi-io/src/main.c