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:
Ed Maste 2015-11-27 21:27:39 +00:00
parent 2eb2f0d5e3
commit 632ddb8753

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*),