Add (void) to relevant function declarations
This commit is contained in:
parent
b851c7b269
commit
3dd92de14e
@ -1,4 +1,4 @@
|
|||||||
{! static int get_num_commits(); static int get_num_branches(); static int get_num_tags(); static void short_commit_id(char *hex); !}
|
{! static int get_num_commits(void); static int get_num_branches(void); static int get_num_tags(void); static void short_commit_id(char *hex); !}
|
||||||
|
|
||||||
{% block page_start %}
|
{% block page_start %}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
@ -141,7 +141,7 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{!
|
{!
|
||||||
static int get_num_commits() {
|
static int get_num_commits(void) {
|
||||||
int num_commits = 0;
|
int num_commits = 0;
|
||||||
|
|
||||||
// Based on ui-stats collect_stats
|
// Based on ui-stats collect_stats
|
||||||
@ -173,7 +173,7 @@
|
|||||||
return num_commits;
|
return num_commits;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int get_num_branches() {
|
static int get_num_branches(void) {
|
||||||
struct reflist list;
|
struct reflist list;
|
||||||
list.refs = NULL;
|
list.refs = NULL;
|
||||||
list.alloc = list.count = 0;
|
list.alloc = list.count = 0;
|
||||||
@ -183,7 +183,7 @@
|
|||||||
return num_branches;
|
return num_branches;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int get_num_tags() {
|
static int get_num_tags(void) {
|
||||||
struct reflist list;
|
struct reflist list;
|
||||||
list.refs = NULL;
|
list.refs = NULL;
|
||||||
list.alloc = list.count = 0;
|
list.alloc = list.count = 0;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#ifndef UI_COMMIT_H
|
#ifndef UI_COMMIT_H
|
||||||
#define UI_COMMIT_H
|
#define UI_COMMIT_H
|
||||||
|
|
||||||
extern void cgit_print_commit();
|
extern void cgit_print_commit(void);
|
||||||
|
|
||||||
#endif /* UI_COMMIT_H */
|
#endif /* UI_COMMIT_H */
|
||||||
|
@ -4,6 +4,6 @@
|
|||||||
extern void cgit_tree_print_binary_buffer(char *buf, unsigned long size);
|
extern void cgit_tree_print_binary_buffer(char *buf, unsigned long size);
|
||||||
extern void cgit_tree_print_text_buffer(const char *name, char *buf, unsigned long size);
|
extern void cgit_tree_print_text_buffer(const char *name, char *buf, unsigned long size);
|
||||||
|
|
||||||
extern void cgit_print_tree();
|
extern void cgit_print_tree(void);
|
||||||
|
|
||||||
#endif /* UI_TREE_H */
|
#endif /* UI_TREE_H */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user