summaryrefslogtreecommitdiffstats
path: root/contrib/texinfo/info/infomap.c
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2003-06-18 12:57:43 +0000
committerru <ru@FreeBSD.org>2003-06-18 12:57:43 +0000
commitb0465e4534c37946b9f157053a91a25b88ee6c6f (patch)
tree92a83a9292c9ea3b8a8e235e830bf6581591579e /contrib/texinfo/info/infomap.c
parent1e2af4f2c82dd1396d247a2b5fe032b13c51189a (diff)
downloadFreeBSD-src-b0465e4534c37946b9f157053a91a25b88ee6c6f.zip
FreeBSD-src-b0465e4534c37946b9f157053a91a25b88ee6c6f.tar.gz
Import of stripped down GNU texinfo 4.6
Diffstat (limited to 'contrib/texinfo/info/infomap.c')
-rw-r--r--contrib/texinfo/info/infomap.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/contrib/texinfo/info/infomap.c b/contrib/texinfo/info/infomap.c
index de82f69..82fd490 100644
--- a/contrib/texinfo/info/infomap.c
+++ b/contrib/texinfo/info/infomap.c
@@ -1,5 +1,5 @@
/* infomap.c -- keymaps for Info.
- $Id: infomap.c,v 1.5 2003/01/24 19:04:54 karl Exp $
+ $Id: infomap.c,v 1.7 2003/05/13 16:27:04 karl Exp $
Copyright (C) 1993, 1997, 1998, 1999, 2001, 2002, 2003 Free Software
Foundation, Inc.
@@ -132,7 +132,7 @@ remove_function_keyseq (function, keyseq, rootmap)
function->keys = k->next;
}
#endif /* INFOKEY */
-
+
/* Return a new keymap which is a copy of MAP. */
Keymap
keymap_copy_keymap (map, rootmap, newroot)
@@ -1493,7 +1493,7 @@ fetch_user_maps()
#endif
if (filename == NULL || (f = open(filename, O_RDONLY)) == (-1))
{
- if (filename)
+ if (filename && errno != ENOENT)
{
info_error(filesys_error_string(filename, errno));
free(filename);
@@ -1667,7 +1667,6 @@ section_to_keymaps(map, table, len)
unsigned char *p;
unsigned char *seq;
unsigned int seqlen;
- KEYMAP_ENTRY ke;
enum { getseq, gotseq, getaction } state = getseq;
stop = len > 0 ? table[0] : 0;
@@ -1780,7 +1779,6 @@ initialize_info_keymaps ()
int i;
int suppress_info_default_bindings = 0;
int suppress_ea_default_bindings = 0;
- Keymap map;
if (!info_keymap)
{
OpenPOWER on IntegriCloud