Merge branch 'jk/common-main-2.8' into jk/common-main
[gitweb.git] / credential-cache--daemon.c
index a4bf2366ab49701c99453d805e47eeade204d2c5..1e5f16a3a1272d4a87478525585951d76307750a 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;
                }