diff options
Diffstat (limited to 'tests/pthread.l')
-rw-r--r-- | tests/pthread.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/pthread.l b/tests/pthread.l index 38080c1..c40c024 100644 --- a/tests/pthread.l +++ b/tests/pthread.l @@ -167,7 +167,7 @@ int main (int ARGC, char *ARGV[]) } /* Allocate and initialize the locks. One for each filename in ARGV. */ - file_locks = (pthread_mutex_t*)malloc( (ARGC-1) * sizeof(pthread_mutex_t)); + file_locks = malloc((ARGC-1) * sizeof(pthread_mutex_t)); for( i = 0; i < ARGC-1; i++) pthread_mutex_init( &file_locks[i], NULL ); |