summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1996-04-19 18:40:25 +0000
committerbde <bde@FreeBSD.org>1996-04-19 18:40:25 +0000
commitb0b36003dc9c5fa2fedae1dbd8d5a35e9189d823 (patch)
tree2fd1d38c2a1e197b249333db2131ac807c85b7c2 /lib/libc
parenta807e1724b9d4c6689b61fb11d7834465f7fceee (diff)
downloadFreeBSD-src-b0b36003dc9c5fa2fedae1dbd8d5a35e9189d823.zip
FreeBSD-src-b0b36003dc9c5fa2fedae1dbd8d5a35e9189d823.tar.gz
Don't include <sys/types.h> when it isn't used.
This commit covers most of the ANSI library functions. Many others only need <sys/types.h> because they use u_xxx.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/assert.c1
-rw-r--r--lib/libc/locale/table.c2
-rw-r--r--lib/libc/stdlib/heapsort.c3
-rw-r--r--lib/libc/stdlib/qsort.c3
4 files changed, 2 insertions, 7 deletions
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 <sys/types.h>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
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 <sys/types.h>
-
#include <ctype.h>
#include <rune.h>
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 <sys/types.h>
#include <errno.h>
-#include <stdlib.h>
#include <stddef.h>
+#include <stdlib.h>
/*
* 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 <sys/types.h>
#include <stdlib.h>
typedef int cmp_t __P((const void *, const void *));
OpenPOWER on IntegriCloud