Use an unsigned int when comparing values returned by strlen(). This fixes this compile warning: child.c:447:39: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 447 | if (len > strlen(line +13)) { | Signed-off-by: Luis Chamberlain <mcgrof@xxxxxxxxxx> --- child.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/child.c b/child.c index 04bc474..d340860 100644 --- a/child.c +++ b/child.c @@ -441,7 +441,7 @@ loop_again: int count = RWBUFSIZE; while (count > 0) { - int len; + unsigned int len; len = count; if (len > strlen(line +13)) { -- 2.34.1