From 4a5511c829421231e83dde272154ea0ab64c3011 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Sun, 12 Jul 2009 18:04:04 +0000 Subject: don't cast lvalues, no binary change. ok millert@ gilles@ sthen@ --- usr.bin/gzsig/ssh2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin/gzsig/ssh2.c') 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); } -- cgit v1.2.3