cgi-io: iron out extra compiler warnings
authorPetr Štetiar <ynezz@true.cz>
Fri, 11 Oct 2019 13:07:17 +0000 (15:07 +0200)
committerPetr Štetiar <ynezz@true.cz>
Fri, 11 Oct 2019 14:13:29 +0000 (16:13 +0200)
commit6a4c0cab441a86ae0664e5b2cfd20d61945b2c49
treef1d5f7274013de26c1506c374b29cbd2fc84e40b
parent6677274844a13ae5cfa2a584c52396af0ab1682a
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>
(cherry picked from commit bb6cdb804cc4db12cca776f559baa6d989a992ec)
net/cgi-io/Makefile
net/cgi-io/src/main.c