From 99dfe1345caeb2cd107f69111aba8a9db18a0e6f Mon Sep 17 00:00:00 2001 From: Thomas Hindoe Paaboel Andersen Date: Thu, 17 Jul 2014 20:23:53 +0200 Subject: test-pty: silence a warning --- src/test/test-pty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/test-pty.c b/src/test/test-pty.c index 73c5c85330..ed23e9f0f1 100644 --- a/src/test/test-pty.c +++ b/src/test/test-pty.c @@ -37,11 +37,11 @@ static size_t rcvsiz = 0; static sd_event *event; static void run_child(Pty *pty) { - int r, l; + ssize_t r, l; char buf[512]; r = read(0, buf, sizeof(buf)); - assert_se(r == strlen(sndmsg)); + assert_se((size_t)r == strlen(sndmsg)); assert_se(!strncmp(buf, sndmsg, r)); l = write(1, buf, r); -- cgit v1.2.3-54-g00ecf