Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/net/lib/libsockin Avoid not-used warning on NetBSD
details: https://anonhg.NetBSD.org/src/rev/af38903b50df
branches: trunk
changeset: 787804:af38903b50df
user: pooka <pooka%NetBSD.org@localhost>
date: Thu Jul 04 09:58:28 2013 +0000
description:
Avoid not-used warning on NetBSD
diffstat:
sys/rump/net/lib/libsockin/rumpcomp_user.c | 30 +++++++++++++++---------------
1 files changed, 15 insertions(+), 15 deletions(-)
diffs (51 lines):
diff -r e30559f282f6 -r af38903b50df sys/rump/net/lib/libsockin/rumpcomp_user.c
--- a/sys/rump/net/lib/libsockin/rumpcomp_user.c Thu Jul 04 09:48:01 2013 +0000
+++ b/sys/rump/net/lib/libsockin/rumpcomp_user.c Thu Jul 04 09:58:28 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpcomp_user.c,v 1.7 2013/06/01 11:46:14 pooka Exp $ */
+/* $NetBSD: rumpcomp_user.c,v 1.8 2013/07/04 09:58:28 pooka Exp $ */
/*
* Copyright (c) 2008 Antti Kantee. All Rights Reserved.
@@ -129,20 +129,6 @@
}
#undef translate
-#define translate_back(_a_) case _a_: return RUMP_##_a_
-static int translate_domain_back(int);
-static int
-translate_domain_back(int domain)
-{
-
- switch (domain) {
- translate_back(AF_INET);
- translate_back(AF_INET6);
- default: return RUMP_AF_UNSPEC;
- }
-}
-
-#undef translate_back
static void
translate_sockopt(int *levelp, int *namep)
@@ -326,6 +312,20 @@
return laddr;
}
+#define translate_back(_a_) case _a_: return RUMP_##_a_
+static int translate_domain_back(int);
+static int
+translate_domain_back(int domain)
+{
+
+ switch (domain) {
+ translate_back(AF_INET);
+ translate_back(AF_INET6);
+ default: return RUMP_AF_UNSPEC;
+ }
+}
+#undef translate_back
+
static void
translate_sockaddr_back(const struct sockaddr *laddr,
struct rump_sockaddr *baddr,
Home |
Main Index |
Thread Index |
Old Index