Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Move macro inside of #ifdef KERNEL
details: https://anonhg.NetBSD.org/src/rev/a019d3c03317
branches: trunk
changeset: 345573:a019d3c03317
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Wed Jun 01 04:15:54 2016 +0000
description:
Move macro inside of #ifdef KERNEL
PR kern/46706
diffstat:
sys/sys/socketvar.h | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diffs (41 lines):
diff -r f3b770b8fde2 -r a019d3c03317 sys/sys/socketvar.h
--- a/sys/sys/socketvar.h Wed Jun 01 04:07:51 2016 +0000
+++ b/sys/sys/socketvar.h Wed Jun 01 04:15:54 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: socketvar.h,v 1.139 2015/05/09 15:22:47 rtr Exp $ */
+/* $NetBSD: socketvar.h,v 1.140 2016/06/01 04:15:54 pgoyette Exp $ */
/*-
* Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -184,15 +184,6 @@
kauth_cred_t so_cred; /* socket credentials */
};
-#define SB_EMPTY_FIXUP(sb) \
-do { \
- KASSERT(solocked((sb)->sb_so)); \
- if ((sb)->sb_mb == NULL) { \
- (sb)->sb_mbtail = NULL; \
- (sb)->sb_lastrecord = NULL; \
- } \
-} while (/*CONSTCOND*/0)
-
/*
* Socket state bits.
*/
@@ -237,6 +228,15 @@
uint8_t sopt_buf[sizeof(int)]; /* internal storage */
};
+#define SB_EMPTY_FIXUP(sb) \
+do { \
+ KASSERT(solocked((sb)->sb_so)); \
+ if ((sb)->sb_mb == NULL) { \
+ (sb)->sb_mbtail = NULL; \
+ (sb)->sb_lastrecord = NULL; \
+ } \
+} while (/*CONSTCOND*/0)
+
extern u_long sb_max;
extern int somaxkva;
extern int sock_loan_thresh;
Home |
Main Index |
Thread Index |
Old Index