Skip to content

Commit 26604f9

Browse files
pcloudsgitster
authored andcommitted
credential-cache--daemon.c: use warning_errno()
Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 37653a1 commit 26604f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

credential-cache--daemon.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,12 @@ static int serve_cache_loop(int fd)
170170

171171
client = accept(fd, NULL, NULL);
172172
if (client < 0) {
173-
warning("accept failed: %s", strerror(errno));
173+
warning_errno("accept failed");
174174
return 1;
175175
}
176176
client2 = dup(client);
177177
if (client2 < 0) {
178-
warning("dup failed: %s", strerror(errno));
178+
warning_errno("dup failed");
179179
close(client);
180180
return 1;
181181
}

0 commit comments

Comments
 (0)