warn() appends ENOENT as: No such file or directory
The custom string is unnecessary and problematic for translators.
Signed-off-by: J William Piggott <elseifthen@gmx.com>
rtc_fd = open_rtc(ctl);
if (rtc_fd < 0) {
- if (errno == ENOENT)
- warnx(_("%s does not exist."), rtc_dev_name);
- else
- warn(_("cannot open %s"), rtc_dev_name);
+ warn(_("cannot open %s"), rtc_dev_name);
return 1;
}
rtc_fd = open_rtc(ctl);
if (rtc_fd < 0) {
- if (errno == ENOENT)
- warnx(_("%s does not exist."), rtc_dev_name);
- else
- warn(_("cannot open %s"), rtc_dev_name);
+ warn(_("cannot open %s"), rtc_dev_name);
return 1;
}