Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libutil delint pointer casts.
details: https://anonhg.NetBSD.org/src/rev/c0818acac4d0
branches: trunk
changeset: 554076:c0818acac4d0
user: christos <christos%NetBSD.org@localhost>
date: Sat Oct 25 07:31:27 2003 +0000
description:
delint pointer casts.
diffstat:
lib/libutil/disklabel_dkcksum.c | 8 ++++----
lib/libutil/login_cap.c | 6 +++---
2 files changed, 7 insertions(+), 7 deletions(-)
diffs (56 lines):
diff -r ad99f21ebaa7 -r c0818acac4d0 lib/libutil/disklabel_dkcksum.c
--- a/lib/libutil/disklabel_dkcksum.c Sat Oct 25 07:31:12 2003 +0000
+++ b/lib/libutil/disklabel_dkcksum.c Sat Oct 25 07:31:27 2003 +0000
@@ -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 @@
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);
diff -r ad99f21ebaa7 -r c0818acac4d0 lib/libutil/login_cap.c
--- a/lib/libutil/login_cap.c Sat Oct 25 07:31:12 2003 +0000
+++ b/lib/libutil/login_cap.c Sat Oct 25 07:31:27 2003 +0000
@@ -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 @@
if (!res)
return -1;
- ptr = (char *)res + count * sizeof(char *);
+ ptr = (char *)(void *)res + count * sizeof(char *);
strcpy(ptr, str);
/* split string */
Home |
Main Index |
Thread Index |
Old Index