summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/heapsort.c
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/stdlib/heapsort.c
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/stdlib/heapsort.c')
-rw-r--r--lib/libc/stdlib/heapsort.c3
1 files changed, 1 insertions, 2 deletions
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
OpenPOWER on IntegriCloud