@@ -100,7 +100,7 @@ static LIST_HEAD(done_head);
100100static size_t base_cache_used ;
101101static size_t base_cache_limit ;
102102
103- struct thread_local {
103+ struct thread_local_data {
104104 pthread_t thread ;
105105 int pack_fd ;
106106};
@@ -123,7 +123,7 @@ static struct object_entry *objects;
123123static struct object_stat * obj_stat ;
124124static struct ofs_delta_entry * ofs_deltas ;
125125static struct ref_delta_entry * ref_deltas ;
126- static struct thread_local nothread_data ;
126+ static struct thread_local_data nothread_data ;
127127static int nr_objects ;
128128static int nr_ofs_deltas ;
129129static int nr_ref_deltas ;
@@ -161,7 +161,7 @@ static const char *curr_pack;
161161static struct oidset local_links = OIDSET_INIT ;
162162static int record_local_links ;
163163
164- static struct thread_local * thread_data ;
164+ static struct thread_local_data * thread_data ;
165165static int nr_dispatched ;
166166static int threads_active ;
167167
@@ -403,7 +403,7 @@ static NORETURN void bad_object(off_t offset, const char *format, ...)
403403 (uintmax_t )offset , buf );
404404}
405405
406- static inline struct thread_local * get_thread_data (void )
406+ static inline struct thread_local_data * get_thread_data (void )
407407{
408408 if (HAVE_THREADS ) {
409409 if (threads_active )
@@ -414,7 +414,7 @@ static inline struct thread_local *get_thread_data(void)
414414 return & nothread_data ;
415415}
416416
417- static void set_thread_data (struct thread_local * data )
417+ static void set_thread_data (struct thread_local_data * data )
418418{
419419 if (threads_active )
420420 pthread_setspecific (key , data );
0 commit comments