summaryrefslogtreecommitdiff
path: root/usr.bin/gzsig
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2009-07-12 18:04:04 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2009-07-12 18:04:04 +0000
commit4a5511c829421231e83dde272154ea0ab64c3011 (patch)
tree39489ed747a8e8437471e82525b1266b51d88493 /usr.bin/gzsig
parent3171f6dd9605b2063dfe56f53e3b2f9306e73337 (diff)
don't cast lvalues, no binary change.
ok millert@ gilles@ sthen@
Diffstat (limited to 'usr.bin/gzsig')
-rw-r--r--usr.bin/gzsig/ssh2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/gzsig/ssh2.c b/usr.bin/gzsig/ssh2.c
index f221cb2d8c6..1d68f62640b 100644
--- a/usr.bin/gzsig/ssh2.c
+++ b/usr.bin/gzsig/ssh2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh2.c,v 1.2 2005/05/29 09:10:23 djm Exp $ */
+/* $OpenBSD: ssh2.c,v 1.3 2009/07/12 18:04:03 jsg Exp $ */
/*
* ssh2.c
*
@@ -91,7 +91,7 @@ _read_int(struct iovec *iov, int *ival)
if (iov->iov_len < 0)
return (-1);
*ival = GET_32BIT((u_char *)iov->iov_base);
- (u_char*)iov->iov_base += 4;
+ iov->iov_base = (u_char*)iov->iov_base + 4;
return (0);
}
@@ -107,7 +107,7 @@ _read_opaque(struct iovec *iov, u_char **buf, int *len)
return (-1);
*buf = iov->iov_base;
- (u_char*)iov->iov_base += *len;
+ iov->iov_base = (u_char*)iov->iov_base + *len;
return (0);
}