Merge branch 'jk/bisect-show-tree'
[gitweb.git] / credential-cache--daemon.c
index 291c0fd5e935b5abedc629697d44e5a9f57727bd..1f14d56e98834e73dce91f3a20c3e3795ba6fb37 100644 (file)
@@ -179,12 +179,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;
                }