diff options
author | Michael McConville <mmcconville@mykolab.com> | 2015-12-07 19:44:10 -0500 |
---|---|---|
committer | Will Estes <westes575@gmail.com> | 2015-12-07 21:28:21 -0500 |
commit | c03bef5411d3231f42445932d1971d656f020817 (patch) | |
tree | 90040d0915d1bd68db3a70fc011d56135909eaaa /tests/pthread.l | |
parent | 53e3088d75eb966101e4f229a0fe8e0fdd73ab7e (diff) |
Remove allocation casts
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 ); |