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)
commit1dfec06e304bc48889b30f759a4addca2188e14b
treed93011eb3ffcef217d55ca8fb6efe323fc6ece21
parentb015cff30516c904217961f035d38bc025f26a52
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>
Makefile
src/main.c