From e96993d049f5a25edccb8ca1b1531a58ee5b025e Mon Sep 17 00:00:00 2001 From: Alexander Kabaev Date: Wed, 28 Jul 2004 07:12:30 +0000 Subject: [PATCH] Remove local malloc prototypes, which are incorrect and conflict with both GCC builtin and system declared ones. --- usr.bin/window/context.c | 2 -- usr.bin/window/string.c | 2 -- usr.bin/window/tttermcap.c | 1 - usr.bin/window/var.c | 2 -- 4 files changed, 7 deletions(-) diff --git a/usr.bin/window/context.c b/usr.bin/window/context.c index c190ff1dd00f..78cf892743c4 100644 --- a/usr.bin/window/context.c +++ b/usr.bin/window/context.c @@ -49,8 +49,6 @@ static char rcsid[] = * Context push/pop for nested command files. */ -char *malloc(); - cx_alloc() { register struct context *xp; diff --git a/usr.bin/window/string.c b/usr.bin/window/string.c index 949222e18e81..57b5fa101b8a 100644 --- a/usr.bin/window/string.c +++ b/usr.bin/window/string.c @@ -43,8 +43,6 @@ static char rcsid[] = #include /* System string definitions. */ #include "mystring.h" /* Local string definitions. */ -char *malloc(); - char * str_cpy(s) register char *s; diff --git a/usr.bin/window/tttermcap.c b/usr.bin/window/tttermcap.c index 5f115a0bcfc8..5cc82e641ff7 100644 --- a/usr.bin/window/tttermcap.c +++ b/usr.bin/window/tttermcap.c @@ -44,7 +44,6 @@ static char rcsid[] = char *tgetstr(); char *tgoto(); -char *malloc(); tttputc(c) { diff --git a/usr.bin/window/var.c b/usr.bin/window/var.c index f186460b798e..8ef317591ac7 100644 --- a/usr.bin/window/var.c +++ b/usr.bin/window/var.c @@ -44,8 +44,6 @@ static char rcsid[] = #include "var.h" #include "mystring.h" -char *malloc(); - struct var * var_set1(head, name, v) struct var **head;