mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
tests:pkd: Fix size comparison (payload.len is size_t)
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@@ -376,7 +376,7 @@ static int pkd_exec_hello(int fd, struct pkd_daemon_args *args)
|
||||
}
|
||||
|
||||
rc = ssh_channel_write(c, args->payload.buf, args->payload.len);
|
||||
if (rc != args->payload.len) {
|
||||
if (rc != (int)args->payload.len) {
|
||||
pkderr("ssh_channel_write partial (%d != %zd)\n", rc, args->payload.len);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user