diff options
author | des <des@FreeBSD.org> | 2009-06-13 13:07:56 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2009-06-13 13:07:56 +0000 |
commit | feee7c0482f0d8cc0f167db30f14db19552cfb66 (patch) | |
tree | 938166a168a8b3b655695f86589862545145f186 /usr.sbin/nscd/nscdcli.c | |
parent | 51194019fc09872f7a745dffc7f000c58a8de5d1 (diff) | |
download | FreeBSD-src-feee7c0482f0d8cc0f167db30f14db19552cfb66.zip FreeBSD-src-feee7c0482f0d8cc0f167db30f14db19552cfb66.tar.gz |
Remove casts from {c,m,re}alloc() and simplify sizeof().
MFC after: 1 week
Diffstat (limited to 'usr.sbin/nscd/nscdcli.c')
-rw-r--r-- | usr.sbin/nscd/nscdcli.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/nscd/nscdcli.c b/usr.sbin/nscd/nscdcli.c index 1f9a459..9b07201 100644 --- a/usr.sbin/nscd/nscdcli.c +++ b/usr.sbin/nscd/nscdcli.c @@ -205,7 +205,7 @@ open_nscd_connection__(struct nscd_connection_params const *params) } fcntl(client_socket, F_SETFL, O_NONBLOCK); - retval = calloc(1, sizeof(struct nscd_connection_)); + retval = calloc(1, sizeof(*retval)); assert(retval != NULL); retval->sockfd = client_socket; |