diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-06-12 18:37:29 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-06-12 18:37:29 +0000 |
commit | dc268bcf6a44b920628b2aa0d735b2f3d95e2958 (patch) | |
tree | e37e79275d31f8e5ae6e6081ccd15c08ce4a2454 /sys | |
parent | 7bfe3e80fc4fa11f091353498f3ce7475f7beec8 (diff) | |
download | FreeBSD-src-dc268bcf6a44b920628b2aa0d735b2f3d95e2958.zip FreeBSD-src-dc268bcf6a44b920628b2aa0d735b2f3d95e2958.tar.gz |
Whitespace-only restyling of socket reference count macros.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/socketvar.h | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/sys/sys/socketvar.h b/sys/sys/socketvar.h index cdc540f..4829074 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 |