X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=credential-cache--daemon.c;h=ec1271f89ce08b3b117fe09715f61730c7943bea;hb=19a504d92bde1ba1936eb025c571fef7e6630e4b;hp=0d5c6250940633e75e2c9fb4b59b242a52188411;hpb=7b01c71b64d25202d80b73cbd46104ebfddbdab3;p=thirdparty%2Fgit.git diff --git a/credential-cache--daemon.c b/credential-cache--daemon.c index 0d5c625094..ec1271f89c 100644 --- a/credential-cache--daemon.c +++ b/credential-cache--daemon.c @@ -5,8 +5,6 @@ #include "unix-socket.h" #include "parse-options.h" -static struct tempfile socket_file; - struct credential_cache_entry { struct credential item; timestamp_t expiration; @@ -93,7 +91,8 @@ static timestamp_t check_expirations(void) } static int read_request(FILE *fh, struct credential *c, - struct strbuf *action, int *timeout) { + struct strbuf *action, int *timeout) +{ static struct strbuf item = STRBUF_INIT; const char *p; @@ -260,6 +259,7 @@ static void init_socket_directory(const char *path) int cmd_main(int argc, const char **argv) { + struct tempfile *socket_file; const char *socket_path; int ignore_sighup = 0; static const char *usage[] = { @@ -285,7 +285,7 @@ int cmd_main(int argc, const char **argv) die("socket directory must be an absolute path"); init_socket_directory(socket_path); - register_tempfile(&socket_file, socket_path); + socket_file = register_tempfile(socket_path); if (ignore_sighup) signal(SIGHUP, SIG_IGN);