kbdmap: include filename when reporting fopen() failure

Previously only one of two cases reported the file name. Use the same
error string in both cases.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
emaste 2015-11-27 21:27:39 +00:00
parent d3add9250e
commit 1ed55b5a76

View File

@ -692,7 +692,7 @@ menu_read(void)
fclose(fp);
} else
printf("Could not open file\n");
fprintf(stderr, "Could not open %s for reading\n", filename);
if (show) {
qsort(lang_list->sl_str, lang_list->sl_cur, sizeof(char*),