Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/net appease lint casting.
details: https://anonhg.NetBSD.org/src/rev/785334489a92
branches: trunk
changeset: 500922:785334489a92
user: christos <christos%NetBSD.org@localhost>
date: Wed Dec 20 18:47:11 2000 +0000
description:
appease lint casting.
diffstat:
lib/libc/net/if_nameindex.c | 6 +++---
lib/libc/net/res_mkquery.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r 3e28f1bb5d6a -r 785334489a92 lib/libc/net/if_nameindex.c
--- a/lib/libc/net/if_nameindex.c Wed Dec 20 18:38:30 2000 +0000
+++ b/lib/libc/net/if_nameindex.c Wed Dec 20 18:47:11 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_nameindex.c,v 1.5 2000/11/24 08:21:12 itojun Exp $ */
+/* $NetBSD: if_nameindex.c,v 1.6 2000/12/20 18:47:11 christos Exp $ */
/* $KAME: if_nameindex.c,v 1.8 2000/11/24 08:20:01 itojun Exp $ */
/*-
@@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: if_nameindex.c,v 1.5 2000/11/24 08:21:12 itojun Exp $");
+__RCSID("$NetBSD: if_nameindex.c,v 1.6 2000/12/20 18:47:11 christos Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -116,7 +116,7 @@
* the strings.
*/
cp = malloc((ni + 1) * sizeof(struct if_nameindex) + nbytes);
- ifni = (struct if_nameindex *)cp;
+ ifni = (struct if_nameindex *)(void *)cp;
if (ifni == NULL)
goto out;
cp += (ni + 1) * sizeof(struct if_nameindex);
diff -r 3e28f1bb5d6a -r 785334489a92 lib/libc/net/res_mkquery.c
--- a/lib/libc/net/res_mkquery.c Wed Dec 20 18:38:30 2000 +0000
+++ b/lib/libc/net/res_mkquery.c Wed Dec 20 18:47:11 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: res_mkquery.c,v 1.20 2000/08/09 14:41:04 itojun Exp $ */
+/* $NetBSD: res_mkquery.c,v 1.21 2000/12/20 18:47:37 christos Exp $ */
/*-
* Copyright (c) 1985, 1993
@@ -59,7 +59,7 @@
static char sccsid[] = "@(#)res_mkquery.c 8.1 (Berkeley) 6/4/93";
static char rcsid[] = "Id: res_mkquery.c,v 8.5 1996/08/27 08:33:28 vixie Exp ";
#else
-__RCSID("$NetBSD: res_mkquery.c,v 1.20 2000/08/09 14:41:04 itojun Exp $");
+__RCSID("$NetBSD: res_mkquery.c,v 1.21 2000/12/20 18:47:37 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -219,7 +219,7 @@
register HEADER *hp;
register u_char *cp;
- hp = (HEADER *) buf;
+ hp = (HEADER *)(void *)buf;
cp = buf + n0;
buflen -= n0;
Home |
Main Index |
Thread Index |
Old Index