From b0b36003dc9c5fa2fedae1dbd8d5a35e9189d823 Mon Sep 17 00:00:00 2001 From: bde Date: Fri, 19 Apr 1996 18:40:25 +0000 Subject: Don't include when it isn't used. This commit covers most of the ANSI library functions. Many others only need because they use u_xxx. --- lib/libc/gen/assert.c | 1 - lib/libc/locale/table.c | 2 -- lib/libc/stdlib/heapsort.c | 3 +-- lib/libc/stdlib/qsort.c | 3 +-- 4 files changed, 2 insertions(+), 7 deletions(-) (limited to 'lib/libc') diff --git a/lib/libc/gen/assert.c b/lib/libc/gen/assert.c index 4914aca..eb2748c 100644 --- a/lib/libc/gen/assert.c +++ b/lib/libc/gen/assert.c @@ -35,7 +35,6 @@ static char sccsid[] = "@(#)assert.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ -#include #include #include #include diff --git a/lib/libc/locale/table.c b/lib/libc/locale/table.c index e9de306..9424a58 100644 --- a/lib/libc/locale/table.c +++ b/lib/libc/locale/table.c @@ -38,8 +38,6 @@ static char sccsid[] = "@(#)table.c 8.1 (Berkeley) 6/27/93"; #endif /* LIBC_SCCS and not lint */ -#include - #include #include diff --git a/lib/libc/stdlib/heapsort.c b/lib/libc/stdlib/heapsort.c index d800064..9649553 100644 --- a/lib/libc/stdlib/heapsort.c +++ b/lib/libc/stdlib/heapsort.c @@ -38,10 +38,9 @@ static char sccsid[] = "@(#)heapsort.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ -#include #include -#include #include +#include /* * Swap two areas of size number of bytes. Although qsort(3) permits random diff --git a/lib/libc/stdlib/qsort.c b/lib/libc/stdlib/qsort.c index 66c0224..2e2dcf1 100644 --- a/lib/libc/stdlib/qsort.c +++ b/lib/libc/stdlib/qsort.c @@ -36,10 +36,9 @@ static char sccsid[] = "@(#)qsort.c 8.1 (Berkeley) 6/4/93"; #endif static const char rcsid[] = - "$Id$"; + "$Id: qsort.c,v 1.3 1995/12/26 13:24:58 bde Exp $"; #endif /* LIBC_SCCS and not lint */ -#include #include typedef int cmp_t __P((const void *, const void *)); -- cgit v1.1