diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2015-10-15 08:29:42 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2015-10-15 08:29:42 +0000 |
commit | 5ad5d33cdd2010f31c88b108ac0b9c5fa5dc087b (patch) | |
tree | 1dd4bfc87daa4fbb066e7e61ffa3d23c048c111e /usr.sbin | |
parent | 6c0c0d948d17af9a7a5cc4a6f8d187bfedf98b1d (diff) |
iobuf_queue() should return the number of bytes it queued on success, not 0
ok eric@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/smtpd/iobuf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/iobuf.c b/usr.sbin/smtpd/iobuf.c index 31ce297b998..3daf19055a4 100644 --- a/usr.sbin/smtpd/iobuf.c +++ b/usr.sbin/smtpd/iobuf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: iobuf.c,v 1.6 2015/09/03 06:26:17 jsg Exp $ */ +/* $OpenBSD: iobuf.c,v 1.7 2015/10/15 08:29:41 gilles Exp $ */ /* * Copyright (c) 2012 Eric Faurot <eric@openbsd.org> * @@ -287,7 +287,7 @@ iobuf_queue(struct iobuf *io, const void *data, size_t len) memmove(buf, data, len); - return (0); + return (len); } int |