diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-09-05 13:24:20 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-09-05 13:24:20 +0000 |
commit | 7b154dc4313324dfad6cf0117b8ce246bf12bf16 (patch) | |
tree | 16189315a5407b7be2c7cbc7e5c282aa89d8ce83 /source/smbd/conn.c | |
parent | ead0338ad27f29f1abbbe9f6302d6bf633bf98b2 (diff) | |
download | samba-7b154dc4313324dfad6cf0117b8ce246bf12bf16.tar.gz samba-7b154dc4313324dfad6cf0117b8ce246bf12bf16.tar.xz samba-7b154dc4313324dfad6cf0117b8ce246bf12bf16.zip |
some cleanups to use ZERO_STRUCT() and friends
Diffstat (limited to 'source/smbd/conn.c')
-rw-r--r-- | source/smbd/conn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/smbd/conn.c b/source/smbd/conn.c index 2afbfb7d7eb..5dc904bd91b 100644 --- a/source/smbd/conn.c +++ b/source/smbd/conn.c @@ -108,7 +108,7 @@ connection_struct *conn_new(void) conn = (connection_struct *)malloc(sizeof(*conn)); if (!conn) return NULL; - memset(conn, 0, sizeof(*conn)); + ZERO_STRUCTP(conn); conn->cnum = i; bitmap_set(bmap, i); @@ -184,6 +184,6 @@ void conn_free(connection_struct *conn) bitmap_clear(bmap, conn->cnum); num_open--; - memset(conn, 0, sizeof(*conn)); + ZERO_STRUCTP(conn); free(conn); } |