summaryrefslogtreecommitdiff
path: root/atomicio.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2004-12-19 07:43:37 +0000
committerMatt Johnston <matt@ucc.asn.au>2004-12-19 07:43:37 +0000
commit97dd8cea6af283253f8fa144456f6b653066d9da (patch)
tree9b00d0f2cd65267e4fd41343bbaeb83028f463d4 /atomicio.c
parent5bc02be9b34f06bb646355433848d762318fe76a (diff)
downloaddropbear-97dd8cea6af283253f8fa144456f6b653066d9da.tar.gz
atomicio.c: one less compile warning
Diffstat (limited to 'atomicio.c')
-rw-r--r--atomicio.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/atomicio.c b/atomicio.c
index db2c2ba..1915a7b 100644
--- a/atomicio.c
+++ b/atomicio.c
@@ -1,5 +1,5 @@
/*
- * Copied from OpenSSH 3.6.1p2, required for loginrec.c
+ * Copied from OpenSSH 3.6.1p2.
*
* Copyright (c) 1995,1999 Theo de Raadt. All rights reserved.
* All rights reserved.
@@ -25,8 +25,6 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-/* Taken from OpenSSH for use with the loginrec code */
-
/* RCSID("OpenBSD: atomicio.c,v 1.10 2001/05/08 22:48:07 markus Exp "); */
#include "atomicio.h"
@@ -42,7 +40,8 @@ atomicio(f, fd, _s, n)
size_t n;
{
char *s = _s;
- ssize_t res, pos = 0;
+ ssize_t res;
+ size_t pos = 0;
while (n > pos) {
res = (f) (fd, s + pos, n - pos);