delint pointer casts.

This commit is contained in:
christos 2003-10-25 07:31:27 +00:00
parent ad96bb0dec
commit 5028fe3e04
2 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: disklabel_dkcksum.c,v 1.2 2003/08/07 16:44:58 agc Exp $ */
/* $NetBSD: disklabel_dkcksum.c,v 1.3 2003/10/25 07:31:27 christos Exp $ */
/*-
* Copyright (c) 1991, 1993
@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)dkcksum.c 8.1 (Berkeley) 6/5/93";
#else
__RCSID("$NetBSD: disklabel_dkcksum.c,v 1.2 2003/08/07 16:44:58 agc Exp $");
__RCSID("$NetBSD: disklabel_dkcksum.c,v 1.3 2003/10/25 07:31:27 christos Exp $");
#endif
#endif /* not lint */
@ -50,8 +50,8 @@ disklabel_dkcksum(struct disklabel *lp)
u_short sum;
sum = 0;
start = (u_short *)lp;
end = (u_short *)&lp->d_partitions[lp->d_npartitions];
start = (u_short *)(void *)lp;
end = (u_short *)(void *)&lp->d_partitions[lp->d_npartitions];
while (start < end)
sum ^= *start++;
return (sum);

View File

@ -1,4 +1,4 @@
/* $NetBSD: login_cap.c,v 1.14 2003/10/21 00:55:05 fvdl Exp $ */
/* $NetBSD: login_cap.c,v 1.15 2003/10/25 07:31:27 christos Exp $ */
/*-
* Copyright (c) 1995,1997 Berkeley Software Design, Inc. All rights reserved.
@ -36,7 +36,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: login_cap.c,v 1.14 2003/10/21 00:55:05 fvdl Exp $");
__RCSID("$NetBSD: login_cap.c,v 1.15 2003/10/25 07:31:27 christos Exp $");
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@ -508,7 +508,7 @@ setuserenv(login_cap_t *lc)
if (!res)
return -1;
ptr = (char *)res + count * sizeof(char *);
ptr = (char *)(void *)res + count * sizeof(char *);
strcpy(ptr, str);
/* split string */