diff options
Diffstat (limited to 'sys/sys/socketvar.h')
-rw-r--r-- | sys/sys/socketvar.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/sys/socketvar.h b/sys/sys/socketvar.h index 9368ba6..c99153f 100644 --- a/sys/sys/socketvar.h +++ b/sys/sys/socketvar.h @@ -253,18 +253,18 @@ struct xsocket { */ #define soref(so) do { \ - ++so->so_count; \ + ++(so)->so_count; \ } while (0) #define sorele(so) do { \ - if (so->so_count <= 0) \ + if ((so)->so_count <= 0) \ panic("sorele");\ - if (--so->so_count == 0)\ + if (--(so)->so_count == 0)\ sofree(so); \ } while (0) #define sotryfree(so) do { \ - if (so->so_count == 0) \ + if ((so)->so_count == 0) \ sofree(so); \ } while(0) |