Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2016-05-08 12:47:41 +0300
committerJunio C Hamano <gitster@pobox.com>2016-05-09 22:29:08 +0300
commit26604f9f621b7b5710309671168d98722b8f5f33 (patch)
tree032b4ed553d5ccc836bb4e2643b9b8bdf8e9b653 /credential-cache--daemon.c
parent37653a130af87f9103cf710bbd018eb9078f4bf4 (diff)
credential-cache--daemon.c: use warning_errno()
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'credential-cache--daemon.c')
-rw-r--r--credential-cache--daemon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/credential-cache--daemon.c b/credential-cache--daemon.c
index caef21e4fc..94d18f839c 100644
--- a/credential-cache--daemon.c
+++ b/credential-cache--daemon.c
@@ -170,12 +170,12 @@ static int serve_cache_loop(int fd)
client = accept(fd, NULL, NULL);
if (client < 0) {
- warning("accept failed: %s", strerror(errno));
+ warning_errno("accept failed");
return 1;
}
client2 = dup(client);
if (client2 < 0) {
- warning("dup failed: %s", strerror(errno));
+ warning_errno("dup failed");
close(client);
return 1;
}