Skip to content

Commit 4c69241

Browse files
petercolbergzx2c4
authored andcommitted
Fix missing prototype declarations
Signed-off-by: Peter Colberg <[email protected]>
1 parent 9abe4a2 commit 4c69241

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

ui-diff.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef UI_DIFF_H
22
#define UI_DIFF_H
33

4-
extern void cgit_print_diff_ctrls();
4+
extern void cgit_print_diff_ctrls(void);
55

66
extern void cgit_print_diff(const char *new_hex, const char *old_hex,
77
const char *prefix, int show_ctrls, int raw);

ui-refs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
extern void cgit_print_branches(int maxcount);
55
extern void cgit_print_tags(int maxcount);
6-
extern void cgit_print_refs();
6+
extern void cgit_print_refs(void);
77

88
#endif /* UI_REFS_H */

ui-repolist.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef UI_REPOLIST_H
22
#define UI_REPOLIST_H
33

4-
extern void cgit_print_repolist();
5-
extern void cgit_print_site_readme();
4+
extern void cgit_print_repolist(void);
5+
extern void cgit_print_site_readme(void);
66

77
#endif /* UI_REPOLIST_H */

ui-shared.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#ifndef UI_SHARED_H
22
#define UI_SHARED_H
33

4-
extern const char *cgit_httpscheme();
5-
extern char *cgit_hosturl();
6-
extern const char *cgit_rooturl();
7-
extern char *cgit_currenturl();
8-
extern const char *cgit_loginurl();
4+
extern const char *cgit_httpscheme(void);
5+
extern char *cgit_hosturl(void);
6+
extern const char *cgit_rooturl(void);
7+
extern char *cgit_currenturl(void);
8+
extern const char *cgit_loginurl(void);
99
extern char *cgit_repourl(const char *reponame);
1010
extern char *cgit_fileurl(const char *reponame, const char *pagename,
1111
const char *filename, const char *query);
@@ -66,7 +66,7 @@ extern void cgit_print_age(time_t t, time_t max_relative, const char *format);
6666
extern void cgit_print_http_headers(void);
6767
extern void cgit_redirect(const char *url, bool permanent);
6868
extern void cgit_print_docstart(void);
69-
extern void cgit_print_docend();
69+
extern void cgit_print_docend(void);
7070
__attribute__((format (printf,3,4)))
7171
extern void cgit_print_error_page(int code, const char *msg, const char *fmt, ...);
7272
extern void cgit_print_pageheader(void);

ui-ssdiff.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
#endif
1414
#define MAX_SSDIFF_SIZE ((MAX_SSDIFF_M) * (MAX_SSDIFF_N))
1515

16-
extern void cgit_ssdiff_print_deferred_lines();
16+
extern void cgit_ssdiff_print_deferred_lines(void);
1717

1818
extern void cgit_ssdiff_line_cb(char *line, int len);
1919

20-
extern void cgit_ssdiff_header_begin();
21-
extern void cgit_ssdiff_header_end();
20+
extern void cgit_ssdiff_header_begin(void);
21+
extern void cgit_ssdiff_header_end(void);
2222

23-
extern void cgit_ssdiff_footer();
23+
extern void cgit_ssdiff_footer(void);
2424

2525
#endif /* UI_SSDIFF_H */

ui-summary.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef UI_SUMMARY_H
22
#define UI_SUMMARY_H
33

4-
extern void cgit_print_summary();
4+
extern void cgit_print_summary(void);
55
extern void cgit_print_repo_readme(char *path);
66

77
#endif /* UI_SUMMARY_H */

0 commit comments

Comments
 (0)