1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-31 16:21:26 +03:00

test-pty: silence a warning

This commit is contained in:
Thomas Hindoe Paaboel Andersen 2014-07-17 20:23:53 +02:00
parent f12ea7dad0
commit 99dfe1345c

View File

@ -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);