dir-iterator: use warning_errno when possible
authorMatheus Tavares <matheus.bernardino@usp.br>
Wed, 10 Jul 2019 23:58:58 +0000 (20:58 -0300)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Jul 2019 20:52:15 +0000 (13:52 -0700)
commitc9bba372ed9ee0c5ea1a4037c3c723a6c31f5921
treee054b1ffa6c5a508b65128724aee6e1457e1230c
parent150791adbf1eb432af0b895d81eef5c2717aa6cc
dir-iterator: use warning_errno when possible

Change warning(..., strerror(errno)) by warning_errno(...). This helps
to unify warning display besides simplifying a bit the code. Also,
improve warning messages by surrounding paths with quotation marks and
using more meaningful statements.

Signed-off-by: Matheus Tavares <matheus.bernardino@usp.br>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
dir-iterator.c