Skip to content

Commit d2b6afa

Browse files
pcloudsgitster
authored andcommitted
upload-pack.c: use error_errno()
Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 43c728e commit d2b6afa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

upload-pack.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,7 @@ static void create_pack_file(void)
177177

178178
if (ret < 0) {
179179
if (errno != EINTR) {
180-
error("poll failed, resuming: %s",
181-
strerror(errno));
180+
error_errno("poll failed, resuming");
182181
sleep(1);
183182
}
184183
continue;

0 commit comments

Comments
 (0)