Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/net Use RT_ROUNDUP instead of a private copy since ...
details: https://anonhg.NetBSD.org/src/rev/bf43546295d4
branches: trunk
changeset: 761645:bf43546295d4
user: matt <matt%NetBSD.org@localhost>
date: Fri Feb 04 02:01:12 2011 +0000
description:
Use RT_ROUNDUP instead of a private copy since that's what the kernel uses.
(t_getaddrinfo passes for both i386 (compat_netbsd32) and amd64 with this
change).
diffstat:
lib/libc/net/getifaddrs.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r 997d9b6b256f -r bf43546295d4 lib/libc/net/getifaddrs.c
--- a/lib/libc/net/getifaddrs.c Fri Feb 04 00:19:51 2011 +0000
+++ b/lib/libc/net/getifaddrs.c Fri Feb 04 02:01:12 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: getifaddrs.c,v 1.13 2010/11/05 16:23:56 pooka Exp $ */
+/* $NetBSD: getifaddrs.c,v 1.14 2011/02/04 02:01:12 matt 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.13 2010/11/05 16:23:56 pooka Exp $");
+__RCSID("$NetBSD: getifaddrs.c,v 1.14 2011/02/04 02:01:12 matt Exp $");
#endif /* LIBC_SCCS and not lint */
#ifndef RUMP_ACTION
@@ -58,8 +58,7 @@
#define sysctl(a,b,c,d,e,f) rump_sys___sysctl(a,b,c,d,e,f)
#endif
-#define SALIGN (sizeof(long) - 1)
-#define SA_RLEN(sa) ((sa)->sa_len ? (((sa)->sa_len + SALIGN) & ~SALIGN) : (SALIGN + 1))
+#define SA_RLEN(sa) RT_ROUNDUP((sa)->sa_len)
int
getifaddrs(struct ifaddrs **pif)
Home |
Main Index |
Thread Index |
Old Index