mirror of
https://github.com/git/git.git
synced 2024-09-23 03:40:52 +02:00
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>
This commit is contained in:
parent
37653a130a
commit
26604f9f62
@ -170,12 +170,12 @@ static int serve_cache_loop(int fd)
|
|||||||
|
|
||||||
client = accept(fd, NULL, NULL);
|
client = accept(fd, NULL, NULL);
|
||||||
if (client < 0) {
|
if (client < 0) {
|
||||||
warning("accept failed: %s", strerror(errno));
|
warning_errno("accept failed");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
client2 = dup(client);
|
client2 = dup(client);
|
||||||
if (client2 < 0) {
|
if (client2 < 0) {
|
||||||
warning("dup failed: %s", strerror(errno));
|
warning_errno("dup failed");
|
||||||
close(client);
|
close(client);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user