aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/socketvar.h
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2004-06-12 18:37:29 +0000
committerRobert Watson <rwatson@FreeBSD.org>2004-06-12 18:37:29 +0000
commit25928771d849bcae70d83f1d2a959eb7de5c667e (patch)
treee37e79275d31f8e5ae6e6081ccd15c08ce4a2454 /sys/sys/socketvar.h
parentf6c0cce6d965b59fe77521a58e06a0189a9c9191 (diff)
downloadsrc-25928771d849bcae70d83f1d2a959eb7de5c667e.tar.gz
src-25928771d849bcae70d83f1d2a959eb7de5c667e.zip
Whitespace-only restyling of socket reference count macros.
Notes
Notes: svn path=/head/; revision=130383
Diffstat (limited to 'sys/sys/socketvar.h')
-rw-r--r--sys/sys/socketvar.h50
1 files changed, 25 insertions, 25 deletions
diff --git a/sys/sys/socketvar.h b/sys/sys/socketvar.h
index cdc540f9bbf2..482907451aec 100644
--- a/sys/sys/socketvar.h
+++ b/sys/sys/socketvar.h
@@ -315,31 +315,31 @@ struct xsocket {
* still explicitly close the socket, but the last ref count will free
* the structure.
*/
-#define soref(so) do { \
- ++(so)->so_count; \
- } while (0)
-
-#define sorele(so) do { \
- if ((so)->so_count <= 0) \
- panic("sorele");\
- if (--(so)->so_count == 0)\
- sofree(so); \
- } while (0)
-
-#define sotryfree(so) do { \
- if ((so)->so_count == 0) \
- sofree(so); \
- } while(0)
-
-#define sorwakeup(so) do { \
- if (sb_notify(&(so)->so_rcv)) \
- sowakeup((so), &(so)->so_rcv); \
- } while (0)
-
-#define sowwakeup(so) do { \
- if (sb_notify(&(so)->so_snd)) \
- sowakeup((so), &(so)->so_snd); \
- } while (0)
+#define soref(so) do { \
+ ++(so)->so_count; \
+} while (0)
+
+#define sorele(so) do { \
+ if ((so)->so_count <= 0) \
+ panic("sorele"); \
+ if (--(so)->so_count == 0) \
+ sofree(so); \
+} while (0)
+
+#define sotryfree(so) do { \
+ if ((so)->so_count == 0) \
+ sofree(so); \
+} while(0)
+
+#define sorwakeup(so) do { \
+ if (sb_notify(&(so)->so_rcv)) \
+ sowakeup((so), &(so)->so_rcv); \
+} while (0)
+
+#define sowwakeup(so) do { \
+ if (sb_notify(&(so)->so_snd)) \
+ sowakeup((so), &(so)->so_snd); \
+} while (0)
#ifdef _KERNEL