]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Correctly declare nullary functions
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 21 Feb 2010 19:57:57 +0000 (20:57 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 21 Feb 2010 19:57:57 +0000 (20:57 +0100)
manifest.c
util.c

index 8e38668def18d56f5502f68ed332eb6c68e7ad9b..ee90780f5d55b9b811e14a11d7731e6e41ce93ca 100644 (file)
@@ -188,7 +188,7 @@ static void free_manifest(struct manifest *mf)
                }                               \
        } while (0)
 
-static struct manifest *create_empty_manifest()
+static struct manifest *create_empty_manifest(void)
 {
        struct manifest *mf;
 
diff --git a/util.c b/util.c
index b4d4beb1622d606022c3617cfc10f8e117b2f905..d13de7c75d4fe68cd1c49f4e4debcbb4bd369a94 100644 (file)
--- a/util.c
+++ b/util.c
@@ -691,7 +691,7 @@ const char *get_home_directory(void)
  * Get the current directory by reading $PWD. If $PWD isn't sane, gnu_getcwd()
  * is used.
  */
-char *get_cwd()
+char *get_cwd(void)
 {
        char *pwd;
        char *cwd;