diff options
author | 卜部昌平 <[email protected]> | 2020-02-07 14:14:05 +0900 |
---|---|---|
committer | 卜部昌平 <[email protected]> | 2020-02-07 14:24:19 +0900 |
commit | 115fec062ccf7c6d72c8d5f64b7a5d84c9fb2dd8 (patch) | |
tree | 24639dba7b24afdd604b5d8c5b9e9f06d3d91faa /thread_pthread.c | |
parent | 6ed1a5e0e62bbdadcf3d0c61fcfe0c5f8d01789b (diff) |
more on NULL versus functions.
Function pointers are not void*. See also
ce4ea956d24eab5089a143bba38126f2b11b55b6
8427fca49bd85205f5a8766292dd893f003c0e48
Diffstat (limited to 'thread_pthread.c')
-rw-r--r-- | thread_pthread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/thread_pthread.c b/thread_pthread.c index cbe6aa028a..29284ff0f9 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -587,7 +587,7 @@ Init_native_thread(rb_thread_t *th) if (r) condattr_monotonic = NULL; } #endif - pthread_key_create(&ruby_native_thread_key, NULL); + pthread_key_create(&ruby_native_thread_key, 0); th->thread_id = pthread_self(); fill_thread_id_str(th); native_thread_init(th); |