File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -134,10 +134,14 @@ struct remotes_hash_key {
134
134
};
135
135
136
136
static int remotes_hash_cmp (const void * unused_cmp_data ,
137
- const struct remote * a ,
138
- const struct remote * b ,
139
- const struct remotes_hash_key * key )
137
+ const void * entry ,
138
+ const void * entry_or_key ,
139
+ const void * keydata )
140
140
{
141
+ const struct remote * a = entry ;
142
+ const struct remote * b = entry_or_key ;
143
+ const struct remotes_hash_key * key = keydata ;
144
+
141
145
if (key )
142
146
return strncmp (a -> name , key -> str , key -> len ) || a -> name [key -> len ];
143
147
else
@@ -147,7 +151,7 @@ static int remotes_hash_cmp(const void *unused_cmp_data,
147
151
static inline void init_remotes_hash (void )
148
152
{
149
153
if (!remotes_hash .cmpfn )
150
- hashmap_init (& remotes_hash , ( hashmap_cmp_fn ) remotes_hash_cmp , NULL , 0 );
154
+ hashmap_init (& remotes_hash , remotes_hash_cmp , NULL , 0 );
151
155
}
152
156
153
157
static struct remote * make_remote (const char * name , int len )
You can’t perform that action at this time.
0 commit comments