[systemd-commits] src/test
Thomas H.P. Andersen
phomes at kemper.freedesktop.org
Thu Jul 17 11:24:05 PDT 2014
src/test/test-pty.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 99dfe1345caeb2cd107f69111aba8a9db18a0e6f
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Thu Jul 17 20:23:53 2014 +0200
test-pty: silence a warning
diff --git a/src/test/test-pty.c b/src/test/test-pty.c
index 73c5c85..ed23e9f 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);
More information about the systemd-commits
mailing list