From 2f658e4b73fee0361c12cf25e0e37e91fbfc6e18 Mon Sep 17 00:00:00 2001 From: cgd Date: Tue, 20 Sep 1994 06:45:17 +0000 Subject: [PATCH] c syntax --- sys/ufs/lfs/lfs_cksum.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/ufs/lfs/lfs_cksum.c b/sys/ufs/lfs/lfs_cksum.c index dc5ab8803740..5e291ee434c3 100644 --- a/sys/ufs/lfs/lfs_cksum.c +++ b/sys/ufs/lfs/lfs_cksum.c @@ -1,4 +1,4 @@ -/* $NetBSD: lfs_cksum.c,v 1.2 1994/06/29 06:46:53 cgd Exp $ */ +/* $NetBSD: lfs_cksum.c,v 1.3 1994/09/20 06:45:17 cgd Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -54,7 +54,7 @@ cksum(str, len) len &= ~(sizeof(u_short) - 1); for (sum = 0; len; len -= sizeof(u_short)) { sum ^= *(u_short *)str; - ++(u_short *)str; + str = (void *)((u_short *)str + 1); } return (sum); }