diff options
author | joerg <joerg@FreeBSD.org> | 1996-12-14 19:53:49 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1996-12-14 19:53:49 +0000 |
commit | 5476bdc6871cd231f6041ffed18201a40fd63370 (patch) | |
tree | 5f4ce179ffc745f34801c743beca866f4dff0bf6 /usr.sbin/config/mkmakefile.c | |
parent | 000a733206a490453542c9e437941673ec57912a (diff) | |
download | FreeBSD-src-5476bdc6871cd231f6041ffed18201a40fd63370.zip FreeBSD-src-5476bdc6871cd231f6041ffed18201a40fd63370.tar.gz |
Part #2 of the config cleanup. More aggressive, replaced an NIH
version of strdup() by a macro, killed many calls to strdup(), thus
potentially wasting less malloc'ed space (their args were never be
free()ed desptie despite of being malloc'ed). Probably still a huge
memory leak at all... Also killed two totally useless variables.
I've tested it as i could, but wouldn't be surprised if unexpected
problems showed up. So watch out this space!
Diffstat (limited to 'usr.sbin/config/mkmakefile.c')
-rw-r--r-- | usr.sbin/config/mkmakefile.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.sbin/config/mkmakefile.c b/usr.sbin/config/mkmakefile.c index 513a503..56aa44a 100644 --- a/usr.sbin/config/mkmakefile.c +++ b/usr.sbin/config/mkmakefile.c @@ -42,6 +42,7 @@ static char sccsid[] = "@(#)mkmakefile.c 8.1 (Berkeley) 6/6/93"; */ #include <stdio.h> +#include <string.h> #include <ctype.h> #include "y.tab.h" #include "config.h" @@ -61,6 +62,8 @@ static char sccsid[] = "@(#)mkmakefile.c 8.1 (Berkeley) 6/6/93"; wd = word; \ } +#define ns(s) strdup(s) + static struct file_list *fcur; char *tail(); extern int old_config_present; |