diff options
author | Christiano F. Haesbaert <haesbaert@cvs.openbsd.org> | 2012-04-14 12:10:05 +0000 |
---|---|---|
committer | Christiano F. Haesbaert <haesbaert@cvs.openbsd.org> | 2012-04-14 12:10:05 +0000 |
commit | c075c6789739471e0065fb9e703d9f086c29fb57 (patch) | |
tree | ef05629aaa246b738b6773e36b09caa0deeecefb /usr.sbin/sasyncd | |
parent | 43d6abbdbca95ffcdcf76bd4e43405d0795776ee (diff) |
read returns ssize_t not int.
ok mikeb@
Diffstat (limited to 'usr.sbin/sasyncd')
-rw-r--r-- | usr.sbin/sasyncd/net.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/sasyncd/net.c b/usr.sbin/sasyncd/net.c index d64998e724d..dbaf369f0ff 100644 --- a/usr.sbin/sasyncd/net.c +++ b/usr.sbin/sasyncd/net.c @@ -1,4 +1,4 @@ -/* $OpenBSD: net.c,v 1.17 2012/04/14 11:46:09 haesbaert Exp $ */ +/* $OpenBSD: net.c,v 1.18 2012/04/14 12:10:04 haesbaert Exp $ */ /* * Copyright (c) 2005 Håkan Olsson. All rights reserved. @@ -667,7 +667,8 @@ net_read(struct syncpeer *p, u_int32_t *msgtype, u_int32_t *msglen) { u_int8_t *msg, *blob, *rhash, *iv, hash[SHA_DIGEST_LENGTH]; u_int32_t v, blob_len, pos = 0; - int padlen = 0, offset = 0, r; + int padlen = 0, offset = 0; + ssize_t r; SHA_CTX ctx; /* Read blob length */ |