Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
mingw: declare main()'s argv as const
[gitweb.git]
/
credential-cache.c
diff --git
a/credential-cache.c
b/credential-cache.c
index f4afdc6988c32cd95769dee488f8495b8a6ce5b6..cc8a6ee19214b12758fc3d4b39ff4a07f4442d91 100644
(file)
--- a/
credential-cache.c
+++ b/
credential-cache.c
@@
-32,6
+32,7
@@
static int send_request(const char *socket, const struct strbuf *out)
write_or_die(1, in, r);
got_data = 1;
}
+ close(fd);
return got_data;
}
@@
-82,7
+83,7
@@
static void do_cache(const char *socket, const char *action, int timeout,
strbuf_release(&buf);
}
-int main(int argc, const char **argv)
+int
cmd_
main(int argc, const char **argv)
{
char *socket_path = NULL;
int timeout = 900;