Skip to content

Commit 24d36f1

Browse files
davvidgitster
authored andcommitted
stylefix: asterisks stick to the variable, not the type
Signed-off-by: David Aguilar <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 96db324 commit 24d36f1

File tree

7 files changed

+10
-9
lines changed

7 files changed

+10
-9
lines changed

builtin/clone.c

+4-3
Original file line numberDiff line numberDiff line change
@@ -685,9 +685,10 @@ static void write_config(struct string_list *config)
685685
}
686686
}
687687

688-
static void write_refspec_config(const char* src_ref_prefix,
689-
const struct ref* our_head_points_at,
690-
const struct ref* remote_head_points_at, struct strbuf* branch_top)
688+
static void write_refspec_config(const char *src_ref_prefix,
689+
const struct ref *our_head_points_at,
690+
const struct ref *remote_head_points_at,
691+
struct strbuf *branch_top)
691692
{
692693
struct strbuf key = STRBUF_INIT;
693694
struct strbuf value = STRBUF_INIT;

commit.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1256,7 +1256,7 @@ static void parse_gpg_output(struct signature_check *sigc)
12561256
}
12571257
}
12581258

1259-
void check_commit_signature(const struct commit* commit, struct signature_check *sigc)
1259+
void check_commit_signature(const struct commit *commit, struct signature_check *sigc)
12601260
{
12611261
struct strbuf payload = STRBUF_INIT;
12621262
struct strbuf signature = STRBUF_INIT;

commit.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ extern void print_commit_list(struct commit_list *list,
346346
* at all. This may allocate memory for sig->gpg_output, sig->gpg_status,
347347
* sig->signer and sig->key.
348348
*/
349-
extern void check_commit_signature(const struct commit* commit, struct signature_check *sigc);
349+
extern void check_commit_signature(const struct commit *commit, struct signature_check *sigc);
350350

351351
int compare_commits_by_commit_date(const void *a_, const void *b_, void *unused);
352352

reflog-walk.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ struct reflog_walk_info {
133133
struct commit_reflog *last_commit_reflog;
134134
};
135135

136-
void init_reflog_walk(struct reflog_walk_info** info)
136+
void init_reflog_walk(struct reflog_walk_info **info)
137137
{
138138
*info = xcalloc(1, sizeof(struct reflog_walk_info));
139139
}

reflog-walk.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
struct reflog_walk_info;
77

8-
extern void init_reflog_walk(struct reflog_walk_info** info);
8+
extern void init_reflog_walk(struct reflog_walk_info **info);
99
extern int add_reflog_for_walk(struct reflog_walk_info *info,
1010
struct commit *commit, const char *name);
1111
extern void fake_reflog_parent(struct reflog_walk_info *info,

refs.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ static inline const char *has_glob_specials(const char *pattern)
7777
extern int for_each_rawref(each_ref_fn, void *);
7878

7979
extern void warn_dangling_symref(FILE *fp, const char *msg_fmt, const char *refname);
80-
extern void warn_dangling_symrefs(FILE *fp, const char *msg_fmt, const struct string_list* refnames);
80+
extern void warn_dangling_symrefs(FILE *fp, const char *msg_fmt, const struct string_list *refnames);
8181

8282
/*
8383
* Lock the packed-refs file for writing. Flags is passed to

remote-curl.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ static int show_http_message(struct strbuf *type, struct strbuf *charset,
221221
return 0;
222222
}
223223

224-
static struct discovery* discover_refs(const char *service, int for_push)
224+
static struct discovery *discover_refs(const char *service, int for_push)
225225
{
226226
struct strbuf exp = STRBUF_INIT;
227227
struct strbuf type = STRBUF_INIT;

0 commit comments

Comments
 (0)