static int git_atexit_installed;
-static void git_atexit_dispatch()
+static void git_atexit_dispatch(void)
{
size_t i;
git_atexit_hdlrs.handlers[i-1]();
}
-static void git_atexit_clear()
+static void git_atexit_clear(void)
{
free(git_atexit_hdlrs.handlers);
memset(&git_atexit_hdlrs, 0, sizeof(git_atexit_hdlrs));
#endif
}
-char *find_hook(const char *name)
+const char *find_hook(const char *name)
{
- char *path = git_path("hooks/%s", name);
+ const char *path = git_path("hooks/%s", name);
if (access(path, X_OK) < 0)
path = NULL;