Skip to content

Commit 9ad3635

Browse files
bbolligitster
authored andcommitted
sequencer.c: avoid empty statements at top level
The macro GIT_PATH_FUNC expands to a function definition that ends with a closing brace. Remove two extra semicolons. While at it, fix the example in path.h. Signed-off-by: Beat Bolli <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8302f50 commit 9ad3635

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

path.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ extern void report_linked_checkout_garbage(void);
147147
/*
148148
* You can define a static memoized git path like:
149149
*
150-
* static GIT_PATH_FUNC(git_path_foo, "FOO");
150+
* static GIT_PATH_FUNC(git_path_foo, "FOO")
151151
*
152152
* or use one of the global ones below.
153153
*/

sequencer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ static GIT_PATH_FUNC(rebase_path_done, "rebase-merge/done")
6161
* The file to keep track of how many commands were already processed (e.g.
6262
* for the prompt).
6363
*/
64-
static GIT_PATH_FUNC(rebase_path_msgnum, "rebase-merge/msgnum");
64+
static GIT_PATH_FUNC(rebase_path_msgnum, "rebase-merge/msgnum")
6565
/*
6666
* The file to keep track of how many commands are to be processed in total
6767
* (e.g. for the prompt).
6868
*/
69-
static GIT_PATH_FUNC(rebase_path_msgtotal, "rebase-merge/end");
69+
static GIT_PATH_FUNC(rebase_path_msgtotal, "rebase-merge/end")
7070
/*
7171
* The commit message that is planned to be used for any changes that
7272
* need to be committed following a user interaction.

0 commit comments

Comments
 (0)