diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/term.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/term.c b/src/term.c index ecbca87c8b7..8c824294134 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -1238,7 +1238,6 @@ term_get_fkeys (address) | |||
| 1238 | char **address; | 1238 | char **address; |
| 1239 | { | 1239 | { |
| 1240 | extern char *tgetstr (); | 1240 | extern char *tgetstr (); |
| 1241 | char capval[32]; | ||
| 1242 | int i; | 1241 | int i; |
| 1243 | 1242 | ||
| 1244 | for (i = 0; i < (sizeof (keys)/sizeof (keys[0])); i++) | 1243 | for (i = 0; i < (sizeof (keys)/sizeof (keys[0])); i++) |
| @@ -1288,7 +1287,7 @@ term_get_fkeys (address) | |||
| 1288 | else | 1287 | else |
| 1289 | fcap[1] = 'a' + i - 11; | 1288 | fcap[1] = 'a' + i - 11; |
| 1290 | 1289 | ||
| 1291 | if (tgetstr(fcap, &capval)) | 1290 | if (tgetstr(fcap, address)) |
| 1292 | { | 1291 | { |
| 1293 | (void) sprintf(fkey, "f%d", i); | 1292 | (void) sprintf(fkey, "f%d", i); |
| 1294 | Fdefine_key (Vfunction_key_map, | 1293 | Fdefine_key (Vfunction_key_map, |
| @@ -1303,7 +1302,7 @@ term_get_fkeys (address) | |||
| 1303 | */ | 1302 | */ |
| 1304 | { | 1303 | { |
| 1305 | #define CONDITIONAL_REASSIGN(cap1, cap2, sym) \ | 1304 | #define CONDITIONAL_REASSIGN(cap1, cap2, sym) \ |
| 1306 | if (!tgetstr(cap1, &capval) && tgetstr(cap2, &capval)) \ | 1305 | if (!tgetstr(cap1, address) && tgetstr(cap2, address)) \ |
| 1307 | Fdefine_key (Vfunction_key_map, \ | 1306 | Fdefine_key (Vfunction_key_map, \ |
| 1308 | build_string (cap2), \ | 1307 | build_string (cap2), \ |
| 1309 | Fmake_vector (make_number (1), intern (sym))) | 1308 | Fmake_vector (make_number (1), intern (sym))) |