Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/net lint clean



details:   https://anonhg.NetBSD.org/src/rev/b141eae676b5
branches:  trunk
changeset: 535052:b141eae676b5
user:      itojun <itojun%NetBSD.org@localhost>
date:      Fri Aug 09 04:29:29 2002 +0000

description:
lint clean

diffstat:

 lib/libc/net/getifaddrs.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r b1d0178df1f4 -r b141eae676b5 lib/libc/net/getifaddrs.c
--- a/lib/libc/net/getifaddrs.c Fri Aug 09 04:26:07 2002 +0000
+++ b/lib/libc/net/getifaddrs.c Fri Aug 09 04:29:29 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getifaddrs.c,v 1.9 2002/08/09 04:26:07 itojun Exp $    */
+/*     $NetBSD: getifaddrs.c,v 1.10 2002/08/09 04:29:29 itojun Exp $   */
 
 /*
  * Copyright (c) 1995, 1999
@@ -27,7 +27,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: getifaddrs.c,v 1.9 2002/08/09 04:26:07 itojun Exp $");
+__RCSID("$NetBSD: getifaddrs.c,v 1.10 2002/08/09 04:29:29 itojun Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -193,8 +193,8 @@
                                names += dl->sdl_nlen + 1;
 
                                ift->ifa_addr = (struct sockaddr *)(void *)data;
-                               memcpy(data, dl,
-                                   ((struct sockaddr *)(void *)dl)->sa_len);
+                               memcpy(data, dl, (size_t)((struct sockaddr *)
+                                   (void *)dl)->sa_len);
                                data += SA_RLEN((struct sockaddr *)(void *)dl);
 
                                /* ifm_data needs to be aligned */



Home | Main Index | Thread Index | Old Index