summaryrefslogtreecommitdiff
path: root/lib/libcurses/tinfo
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1999-03-15 19:12:24 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1999-03-15 19:12:24 +0000
commit5ae0c7aa4dc3981f2cbb90c48eddd9b2b62453a0 (patch)
treefad8f0a7e3df865833d8e1027003c1584a721593 /lib/libcurses/tinfo
parent6db043601217d8ab6b5c564bd032eae7da5cdf78 (diff)
ncurses-4.2-990314
Diffstat (limited to 'lib/libcurses/tinfo')
-rw-r--r--lib/libcurses/tinfo/comp_hash.c8
-rw-r--r--lib/libcurses/tinfo/doalloc.c10
2 files changed, 11 insertions, 7 deletions
diff --git a/lib/libcurses/tinfo/comp_hash.c b/lib/libcurses/tinfo/comp_hash.c
index 95d9caf0e56..862dd21fb3e 100644
--- a/lib/libcurses/tinfo/comp_hash.c
+++ b/lib/libcurses/tinfo/comp_hash.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: comp_hash.c,v 1.2 1999/03/02 06:23:28 millert Exp $ */
+/* $OpenBSD: comp_hash.c,v 1.3 1999/03/15 19:12:22 millert Exp $ */
/****************************************************************************
* Copyright (c) 1998 Free Software Foundation, Inc. *
@@ -51,7 +51,7 @@
#define DEBUG(level, params) /*nothing*/
#endif
-MODULE_ID("$From: comp_hash.c,v 1.19 1999/02/22 22:49:43 tom Exp $")
+MODULE_ID("$From: comp_hash.c,v 1.20 1999/03/14 12:23:26 tom Exp $")
static int hash_function(const char *);
@@ -65,6 +65,10 @@ static int hash_function(const char *);
*/
#ifdef MAIN_PROGRAM
+
+#undef USE_RCS_IDS
+#include <tinfo/doalloc.c>
+
static void _nc_make_hash_table(struct name_table_entry *table,
struct name_table_entry **hash_table)
{
diff --git a/lib/libcurses/tinfo/doalloc.c b/lib/libcurses/tinfo/doalloc.c
index 43b6017e35c..8a87ead7f15 100644
--- a/lib/libcurses/tinfo/doalloc.c
+++ b/lib/libcurses/tinfo/doalloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: doalloc.c,v 1.2 1999/03/02 06:23:28 millert Exp $ */
+/* $OpenBSD: doalloc.c,v 1.3 1999/03/15 19:12:23 millert Exp $ */
/****************************************************************************
* Copyright (c) 1998 Free Software Foundation, Inc. *
@@ -42,7 +42,7 @@
#include <curses.priv.h>
-MODULE_ID("$From: doalloc.c,v 1.4 1999/02/27 19:58:33 tom Exp $")
+MODULE_ID("$From: doalloc.c,v 1.5 1999/03/14 12:25:27 tom Exp $")
void *_nc_doalloc(void *oldp, size_t amount)
{
@@ -60,13 +60,13 @@ void *_nc_doalloc(void *oldp, size_t amount)
}
#if !HAVE_STRDUP
-char *_nc_strdup(char *src)
+char *_nc_strdup(const char *src)
{
char *dst;
if (src != 0) {
- char *dst = typeMalloc(char, strlen(src) + 1);
+ *dst = typeMalloc(char, strlen(src) + 1);
if (dst != 0) {
- (void)strcpy(dst, src):
+ (void)strcpy(dst, src);
}
} else {
dst = 0;