@@ -100,7 +100,7 @@ static LIST_HEAD(done_head);
100
100
static size_t base_cache_used ;
101
101
static size_t base_cache_limit ;
102
102
103
- struct thread_local {
103
+ struct thread_local_data {
104
104
pthread_t thread ;
105
105
int pack_fd ;
106
106
};
@@ -123,7 +123,7 @@ static struct object_entry *objects;
123
123
static struct object_stat * obj_stat ;
124
124
static struct ofs_delta_entry * ofs_deltas ;
125
125
static struct ref_delta_entry * ref_deltas ;
126
- static struct thread_local nothread_data ;
126
+ static struct thread_local_data nothread_data ;
127
127
static int nr_objects ;
128
128
static int nr_ofs_deltas ;
129
129
static int nr_ref_deltas ;
@@ -161,7 +161,7 @@ static const char *curr_pack;
161
161
static struct oidset local_links = OIDSET_INIT ;
162
162
static int record_local_links ;
163
163
164
- static struct thread_local * thread_data ;
164
+ static struct thread_local_data * thread_data ;
165
165
static int nr_dispatched ;
166
166
static int threads_active ;
167
167
@@ -403,7 +403,7 @@ static NORETURN void bad_object(off_t offset, const char *format, ...)
403
403
(uintmax_t )offset , buf );
404
404
}
405
405
406
- static inline struct thread_local * get_thread_data (void )
406
+ static inline struct thread_local_data * get_thread_data (void )
407
407
{
408
408
if (HAVE_THREADS ) {
409
409
if (threads_active )
@@ -414,7 +414,7 @@ static inline struct thread_local *get_thread_data(void)
414
414
return & nothread_data ;
415
415
}
416
416
417
- static void set_thread_data (struct thread_local * data )
417
+ static void set_thread_data (struct thread_local_data * data )
418
418
{
419
419
if (threads_active )
420
420
pthread_setspecific (key , data );
0 commit comments