From ee61b5a715f75ecca4282d282f5469d9f4777d04 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Wed, 18 Oct 1995 15:56:55 +0000 Subject: put the _getenv and _strncmp under #ifdef DEBUG, which is the only time they are used. Saves a few bytes here and there, nothing major. --- lib/csu/i386/crt0.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/csu') diff --git a/lib/csu/i386/crt0.c b/lib/csu/i386/crt0.c index e42e21feb7cf..be4508f4c03a 100644 --- a/lib/csu/i386/crt0.c +++ b/lib/csu/i386/crt0.c @@ -27,7 +27,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: crt0.c,v 1.17 1995/06/27 09:53:27 dfr Exp $ + * $Id: crt0.c,v 1.18 1995/09/27 23:13:33 nate Exp $ */ @@ -72,8 +72,10 @@ extern void _startup_setlocale __P((int, const char *)); extern struct _dynamic _DYNAMIC; static struct ld_entry *ld_entry; static void __do_dynamic_link (); +#ifdef DEBUG static char *_getenv(); static int _strncmp(); +#endif /* DEBUG */ #ifdef sun #define LDSO "/usr/lib/ld.so" @@ -334,6 +336,7 @@ dlerror() /* * Support routines */ +#ifdef DEBUG static int _strncmp(s1, s2, n) @@ -369,6 +372,8 @@ _getenv(name) return (char *)0; } +#endif /* DEBUG */ + asm(" ___syscall:"); asm(" popl %ecx"); asm(" popl %eax"); -- cgit v1.2.3