From 79b0bb334757e20e586587f83b8e9904e93dd38f Mon Sep 17 00:00:00 2001 From: ceriel Date: Wed, 29 Nov 1989 09:55:03 +0000 Subject: [PATCH] do not declare sprintf. On some systems it is an int, on others it is a char * --- mach/proto/as/comm7.c | 6 ------ mach/proto/ncg/compute.c | 6 ------ mach/proto/ncg/fillem.c | 6 ------ mach/proto/ncg/gencode.c | 6 ------ 4 files changed, 24 deletions(-) diff --git a/mach/proto/as/comm7.c b/mach/proto/as/comm7.c index 492a24445..da2ef29b1 100644 --- a/mach/proto/as/comm7.c +++ b/mach/proto/as/comm7.c @@ -12,12 +12,6 @@ #include "comm1.h" #include "y.tab.h" -#ifndef __STDC__ -extern char *sprintf(); -#else -/* sprintf should be declared in stdio.h, as returning an int */ -#endif - valu_t load(ip) register item_t *ip; diff --git a/mach/proto/ncg/compute.c b/mach/proto/ncg/compute.c index 1d66c749e..60ff090b8 100644 --- a/mach/proto/ncg/compute.c +++ b/mach/proto/ncg/compute.c @@ -19,12 +19,6 @@ static char rcsid[] = "$Header$"; * Author: Hans van Staveren */ -#ifndef __STDC__ -extern char *sprintf(); -#else -/* sprintf should be declared in stdio.h, as returning an int */ -#endif - #define LLEAF 01 #define LDEF 02 #define RLEAF 04 diff --git a/mach/proto/ncg/fillem.c b/mach/proto/ncg/fillem.c index 993500020..9b9d898bd 100644 --- a/mach/proto/ncg/fillem.c +++ b/mach/proto/ncg/fillem.c @@ -29,12 +29,6 @@ static char rcsid2[] = "$Header$"; * Author: Hans van Staveren */ -#ifndef __STDC__ -extern char *sprintf(); -#else -/* sprintf should be declared in stdio.h, as returning an int */ -#endif - #ifndef newplb /* retrofit for older mach.h */ #define newplb newilb #endif diff --git a/mach/proto/ncg/gencode.c b/mach/proto/ncg/gencode.c index 12cf181b4..c33f492ec 100644 --- a/mach/proto/ncg/gencode.c +++ b/mach/proto/ncg/gencode.c @@ -19,12 +19,6 @@ static char rcsid[] = "$Header$"; * Author: Hans van Staveren */ -#ifndef __STDC__ -extern char *sprintf(); -#else -/* sprintf should be declared in stdio.h, as returning an int */ -#endif - string mystrcpy(); FILE *codefile; -- 2.34.1