summaryrefslogtreecommitdiffstats
path: root/contrib/texinfo/util/install-info.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/texinfo/util/install-info.c')
-rw-r--r--contrib/texinfo/util/install-info.c32
1 files changed, 3 insertions, 29 deletions
diff --git a/contrib/texinfo/util/install-info.c b/contrib/texinfo/util/install-info.c
index 75fcba9..d346fb7 100644
--- a/contrib/texinfo/util/install-info.c
+++ b/contrib/texinfo/util/install-info.c
@@ -1,5 +1,5 @@
/* install-info -- create Info directory entry(ies) for an Info file.
- $Id: install-info.c,v 1.7 2003/01/19 18:46:51 karl Exp $
+ $Id: install-info.c,v 1.9 2003/05/19 13:10:59 karl Exp $
Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free Software
Foundation, Inc.
@@ -165,33 +165,6 @@ fatal (s1, s2, s3)
xexit (1);
}
-/* Memory allocation and string operations. */
-
-/* Like malloc but get fatal error if memory is exhausted. */
-void *
-xmalloc (size)
- unsigned int size;
-{
- extern void *malloc ();
- void *result = malloc (size);
- if (result == NULL)
- fatal (_("virtual memory exhausted"), 0, 0);
- return result;
-}
-
-/* Like realloc but get fatal error if memory is exhausted. */
-void *
-xrealloc (obj, size)
- void *obj;
- unsigned int size;
-{
- extern void *realloc ();
- void *result = realloc (obj, size);
- if (result == NULL)
- fatal (_("virtual memory exhausted"), 0, 0);
- return result;
-}
-
/* Return a newly-allocated string
whose contents concatenate those of S1, S2, S3. */
char *
@@ -1397,7 +1370,7 @@ For more information about these matters, see the files named COPYING.\n"),
}
if (!spec || spec == entry->entry_sections_tail)
continue;
-
+
/* Subtract one because dir_lines is zero-based,
but the `end_line' and `start_line' members are
one-based. */
@@ -1442,6 +1415,7 @@ For more information about these matters, see the files named COPYING.\n"),
entries_to_add, input_sections, compression_program);
xexit (0);
+ return 0; /* Avoid bogus warnings. */
}
/* Divide the text at DATA (of SIZE bytes) into lines.
OpenPOWER on IntegriCloud