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.
This commit is contained in:
Bruce Evans 1996-04-19 18:40:25 +00:00
parent 87b620baa9
commit 8a4599117b
5 changed files with 3 additions and 9 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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

View File

@ -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 *));

View File

@ -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.2 1995/12/26 13:24:47 bde Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
#include <stdlib.h>
typedef int cmp_t __P((const void *, const void *));