diff options
| author | Patrick Steinhardt <ps@pks.im> | 2016-02-09 12:18:28 +0100 |
|---|---|---|
| committer | Patrick Steinhardt <ps@pks.im> | 2016-06-21 07:58:33 +0200 |
| commit | 8fd74c0806511694db20f40b4ce6ed32c00212c9 (patch) | |
| tree | e62d9632435f236804ecadb91a28a3de7487da7b /src | |
| parent | bb0edf87ce33cbf454fa13490621230cb43d247b (diff) | |
| download | libgit2-8fd74c0806511694db20f40b4ce6ed32c00212c9.tar.gz | |
Avoid old-style function definitions
Avoid declaring old-style functions without any parameters.
Functions not accepting any parameters should be declared with
`void fn(void)`. See ISO C89 $3.5.4.3.
Diffstat (limited to 'src')
| -rw-r--r-- | src/diff_driver.c | 2 | ||||
| -rw-r--r-- | src/settings.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/diff_driver.c b/src/diff_driver.c index bc3518991..2ead551c2 100644 --- a/src/diff_driver.c +++ b/src/diff_driver.c @@ -59,7 +59,7 @@ static git_diff_driver global_drivers[3] = { { DIFF_DRIVER_TEXT, GIT_DIFF_FORCE_TEXT, 0 }, }; -git_diff_driver_registry *git_diff_driver_registry_new() +git_diff_driver_registry *git_diff_driver_registry_new(void) { git_diff_driver_registry *reg = git__calloc(1, sizeof(git_diff_driver_registry)); diff --git a/src/settings.c b/src/settings.c index 0da19ea03..00a3ef04d 100644 --- a/src/settings.c +++ b/src/settings.c @@ -23,7 +23,7 @@ void git_libgit2_version(int *major, int *minor, int *rev) *rev = LIBGIT2_VER_REVISION; } -int git_libgit2_features() +int git_libgit2_features(void) { return 0 #ifdef GIT_THREADS @@ -73,12 +73,12 @@ static int config_level_to_sysdir(int config_level) extern char *git__user_agent; extern char *git__ssl_ciphers; -const char *git_libgit2__user_agent() +const char *git_libgit2__user_agent(void) { return git__user_agent; } -const char *git_libgit2__ssl_ciphers() +const char *git_libgit2__ssl_ciphers(void) { return git__ssl_ciphers; } |
