comparison contrib/chg/chg.c @ 45901:bb9085ba12e6

chg: fix test-check-clang-format.t failure Differential Revision: https://phab.mercurial-scm.org/D9365
author Pulkit Goyal <pulkit@yandex-team.ru>
date Sun, 22 Nov 2020 23:53:09 +0530
parents 8711dc13474c
children 731ea8fa1f11
comparison
equal deleted inserted replaced
45900:0aa118f18d4b 45901:bb9085ba12e6
281 if (end == de->d_name) { 281 if (end == de->d_name) {
282 /* unable to convert to int (. or ..) */ 282 /* unable to convert to int (. or ..) */
283 continue; 283 continue;
284 } 284 }
285 if (errno == ERANGE) { 285 if (errno == ERANGE) {
286 debugmsg("tried to parse %s, but range error occurred", de->d_name); 286 debugmsg("tried to parse %s, but range error "
287 "occurred",
288 de->d_name);
287 continue; 289 continue;
288 } 290 }
289 if (fd_value > STDERR_FILENO) { 291 if (fd_value > STDERR_FILENO) {
290 int res = close(fd_value); 292 int res = close(fd_value);
291 if (res) { 293 if (res) {
292 debugmsg("tried to close fd %ld: %d (errno: %d)", fd_value, res, errno); 294 debugmsg("tried to close fd %ld: %d "
295 "(errno: %d)",
296 fd_value, res, errno);
293 } 297 }
294 } 298 }
295 } 299 }
296 } 300 }
297 301