Add (void) to relevant function declarations

This commit is contained in:
RunasSudo 2025-05-15 17:38:13 +10:00
parent b851c7b269
commit 3dd92de14e
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A
3 changed files with 6 additions and 6 deletions

View File

@ -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 %}
<!DOCTYPE html>
@ -141,7 +141,7 @@
{% endblock %}
{!
static int get_num_commits() {
static int get_num_commits(void) {
int num_commits = 0;
// Based on ui-stats collect_stats
@ -173,7 +173,7 @@
return num_commits;
}
static int get_num_branches() {
static int get_num_branches(void) {
struct reflist list;
list.refs = NULL;
list.alloc = list.count = 0;
@ -183,7 +183,7 @@
return num_branches;
}
static int get_num_tags() {
static int get_num_tags(void) {
struct reflist list;
list.refs = NULL;
list.alloc = list.count = 0;

View File

@ -1,6 +1,6 @@
#ifndef UI_COMMIT_H
#define UI_COMMIT_H
extern void cgit_print_commit();
extern void cgit_print_commit(void);
#endif /* UI_COMMIT_H */

View File

@ -4,6 +4,6 @@
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_print_tree();
extern void cgit_print_tree(void);
#endif /* UI_TREE_H */