diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-03-15 19:00:20 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-03-15 19:00:20 +0000 |
commit | 6db043601217d8ab6b5c564bd032eae7da5cdf78 (patch) | |
tree | 7dc85ec827e5face424b84337892619a6aae47fa /usr.bin/tset | |
parent | a1120541d8e5d493f46feb058578d842f2733b81 (diff) |
ncurses-4.2-990314
Diffstat (limited to 'usr.bin/tset')
-rw-r--r-- | usr.bin/tset/tset.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/usr.bin/tset/tset.c b/usr.bin/tset/tset.c index 7c889c23c83..4647ca6ab06 100644 --- a/usr.bin/tset/tset.c +++ b/usr.bin/tset/tset.c @@ -103,7 +103,7 @@ char *ttyname(int fd); #include <curses.h> /* for bool typedef */ #include <dump_entry.h> -MODULE_ID("$From: tset.c,v 0.36 1999/02/23 11:05:30 tom Exp $") +MODULE_ID("$From: tset.c,v 0.37 1999/03/14 12:30:02 tom Exp $") extern char **environ; @@ -135,15 +135,8 @@ CaselessCmp(const char *a, const char *b) /* strcasecmp isn't portable */ } #if !HAVE_STRDUP -static char *strdup (char *s) -{ - char *p; - - p = malloc(strlen(s)+1); - if (p) - strcpy(p,s); - return(p); -} +#define strdup _nc_strdup +extern char *_nc_strdup(const char *); #endif /* not HAVE_STRDUP */ static void |