summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-07-17 20:23:53 +0200
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-07-17 20:23:53 +0200
commit99dfe1345caeb2cd107f69111aba8a9db18a0e6f (patch)
treed14c4637aa517179b50a9c71cd671112c90bb89a
parentf12ea7dad09366b2d6cc0c28609a72094a4c9353 (diff)
test-pty: silence a warning
-rw-r--r--src/test/test-pty.c4
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);