aboutsummaryrefslogtreecommitdiff
path: root/loadacm.c
diff options
context:
space:
mode:
Diffstat (limited to 'loadacm.c')
-rw-r--r--loadacm.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/loadacm.c b/loadacm.c
index 040062cf8..345a2773c 100644
--- a/loadacm.c
+++ b/loadacm.c
@@ -70,7 +70,7 @@ int screen_map_load(int fd, FILE * fp)
70 if (parse_failed) { 70 if (parse_failed) {
71 if (-1 == fseek(fp, 0, SEEK_SET)) { 71 if (-1 == fseek(fp, 0, SEEK_SET)) {
72 if (errno == ESPIPE) 72 if (errno == ESPIPE)
73 error_msg_and_die("16bit screen-map MUST be a regular file.\n"); 73 error_msg_and_die("16bit screen-map MUST be a regular file.");
74 else 74 else
75 perror_msg_and_die("fseek failed reading binary 16bit screen-map"); 75 perror_msg_and_die("fseek failed reading binary 16bit screen-map");
76 } 76 }
@@ -79,7 +79,7 @@ int screen_map_load(int fd, FILE * fp)
79 perror_msg_and_die("Cannot read [new] map from file"); 79 perror_msg_and_die("Cannot read [new] map from file");
80#if 0 80#if 0
81 else 81 else
82 error_msg("Input screen-map is binary.\n"); 82 error_msg("Input screen-map is binary.");
83#endif 83#endif
84 } 84 }
85 85
@@ -96,7 +96,7 @@ int screen_map_load(int fd, FILE * fp)
96 /* rewind... */ 96 /* rewind... */
97 if (-1 == fseek(fp, 0, SEEK_SET)) { 97 if (-1 == fseek(fp, 0, SEEK_SET)) {
98 if (errno == ESPIPE) 98 if (errno == ESPIPE)
99 error_msg("Assuming 8bit screen-map - MUST be a regular file.\n"), 99 error_msg("Assuming 8bit screen-map - MUST be a regular file."),
100 exit(1); 100 exit(1);
101 else 101 else
102 perror_msg_and_die("fseek failed assuming 8bit screen-map"); 102 perror_msg_and_die("fseek failed assuming 8bit screen-map");
@@ -109,7 +109,7 @@ int screen_map_load(int fd, FILE * fp)
109 if (-1 == fseek(fp, 0, SEEK_SET)) { 109 if (-1 == fseek(fp, 0, SEEK_SET)) {
110 if (errno == ESPIPE) 110 if (errno == ESPIPE)
111 /* should not - it succedeed above */ 111 /* should not - it succedeed above */
112 error_msg_and_die("fseek() returned ESPIPE !\n"); 112 error_msg_and_die("fseek() returned ESPIPE !");
113 else 113 else
114 perror_msg_and_die("fseek for binary 8bit screen-map"); 114 perror_msg_and_die("fseek for binary 8bit screen-map");
115 } 115 }
@@ -118,7 +118,7 @@ int screen_map_load(int fd, FILE * fp)
118 perror_msg_and_die("Cannot read [old] map from file"); 118 perror_msg_and_die("Cannot read [old] map from file");
119#if 0 119#if 0
120 else 120 else
121 error_msg("Input screen-map is binary.\n"); 121 error_msg("Input screen-map is binary.");
122#endif 122#endif
123 } 123 }
124 124
@@ -127,7 +127,7 @@ int screen_map_load(int fd, FILE * fp)
127 else 127 else
128 return 0; 128 return 0;
129 } 129 }
130 error_msg("Error parsing symbolic map\n"); 130 error_msg("Error parsing symbolic map");
131 return(1); 131 return(1);
132} 132}
133 133