Skip to content

Commit a02014b

Browse files
avargitster
authored andcommitted
progress.h: format and be consistent with progress.c naming
Fix an inconsistency introduced in dc6a075 (make struct progress an opaque type, 2007-10-30) and rename the "progress" parameters to stop_progress{,_msg}() to "p_progress". Now these match the corresponding parameters in the *.c code. While we're at it let's move the definition of the former below the latter, a subsequent change will start defining stop_progress() in terms of stop_progress_msg(). Let's also remove the excess whitespace at the end of the file. Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent bbfb1c2 commit a02014b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

progress.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ struct progress *start_sparse_progress(const char *title, uint64_t total);
1818
struct progress *start_delayed_progress(const char *title, uint64_t total);
1919
struct progress *start_delayed_sparse_progress(const char *title,
2020
uint64_t total);
21-
void stop_progress(struct progress **progress);
22-
void stop_progress_msg(struct progress **progress, const char *msg);
23-
21+
void stop_progress_msg(struct progress **p_progress, const char *msg);
22+
void stop_progress(struct progress **p_progress);
2423
#endif

0 commit comments

Comments
 (0)