diff options
author | Volker Lendecke <vl@samba.org> | 2013-05-12 12:44:41 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2013-05-12 15:56:32 +0200 |
commit | 7027c6aca96ce4eb4b6a4207f206d7b85eae7c56 (patch) | |
tree | c13002bebffe3cb09e4fd6ddfe852d8c873d1f65 /source3 | |
parent | 8b3d4eff9342de812d0d27759beeff5e4e7532d1 (diff) | |
download | samba-7027c6aca96ce4eb4b6a4207f206d7b85eae7c56.tar.gz samba-7027c6aca96ce4eb4b6a4207f206d7b85eae7c56.tar.bz2 samba-7027c6aca96ce4eb4b6a4207f206d7b85eae7c56.zip |
pthreadpool: Fix CID 710828 Sizeof not portable
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ira Cooper <ira@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/pthreadpool/pthreadpool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/pthreadpool/pthreadpool.c b/source3/lib/pthreadpool/pthreadpool.c index 04303776a2..c5c9367da1 100644 --- a/source3/lib/pthreadpool/pthreadpool.c +++ b/source3/lib/pthreadpool/pthreadpool.c @@ -407,7 +407,7 @@ static void pthreadpool_server_exit(struct pthreadpool *pool) pool->num_threads -= 1; exited = (pthread_t *)realloc( - pool->exited, sizeof(pthread_t *) * (pool->num_exited + 1)); + pool->exited, sizeof(pthread_t) * (pool->num_exited + 1)); if (exited == NULL) { /* lost a thread status */ |