diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2014-07-17 20:23:53 +0200 |
---|---|---|
committer | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2014-07-17 20:23:53 +0200 |
commit | 99dfe1345caeb2cd107f69111aba8a9db18a0e6f (patch) | |
tree | d14c4637aa517179b50a9c71cd671112c90bb89a /src/test | |
parent | f12ea7dad09366b2d6cc0c28609a72094a4c9353 (diff) |
test-pty: silence a warning
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test-pty.c | 4 |
1 files 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); |