diff options
author | Robert Watson <rwatson@FreeBSD.org> | 2004-06-12 18:37:29 +0000 |
---|---|---|
committer | Robert Watson <rwatson@FreeBSD.org> | 2004-06-12 18:37:29 +0000 |
commit | 25928771d849bcae70d83f1d2a959eb7de5c667e (patch) | |
tree | e37e79275d31f8e5ae6e6081ccd15c08ce4a2454 /sys/sys/socketvar.h | |
parent | f6c0cce6d965b59fe77521a58e06a0189a9c9191 (diff) | |
download | src-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.h | 50 |
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 |