Skip to content

Commit 8464f94

Browse files
Denton-Lgitster
authored andcommitted
promisor-remote.h: drop extern from function declaration
During the creation of this file, each time a new function declaration was introduced, it included an `extern`. However, starting from 5545442 (*.[ch]: remove extern from function declarations using spatch, 2019-04-29), we've been actively trying to prevent externs from being used in function declarations because they're unnecessary. Remove these spurious `extern`s. Signed-off-by: Denton Liu <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4ca9474 commit 8464f94

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

promisor-remote.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ struct promisor_remote {
1515
const char name[FLEX_ARRAY];
1616
};
1717

18-
extern void promisor_remote_reinit(void);
19-
extern struct promisor_remote *promisor_remote_find(const char *remote_name);
20-
extern int has_promisor_remote(void);
21-
extern int promisor_remote_get_direct(struct repository *repo,
22-
const struct object_id *oids,
23-
int oid_nr);
18+
void promisor_remote_reinit(void);
19+
struct promisor_remote *promisor_remote_find(const char *remote_name);
20+
int has_promisor_remote(void);
21+
int promisor_remote_get_direct(struct repository *repo,
22+
const struct object_id *oids,
23+
int oid_nr);
2424

2525
/*
2626
* This should be used only once from setup.c to set the value we got
2727
* from the extensions.partialclone config option.
2828
*/
29-
extern void set_repository_format_partial_clone(char *partial_clone);
29+
void set_repository_format_partial_clone(char *partial_clone);
3030

3131
#endif /* PROMISOR_REMOTE_H */

0 commit comments

Comments
 (0)