tests: Standardize src/tests includes

Convert all C files in src/tests to include afsconfig.h and
afs/param.h as the very first includes, like the rest of the tree
does.

Remove references to config.h and HAVE_CONFIG_H; we don't use those.

Change-Id: I07166de1b0c80bf11a91a0758b32fb77cdf779d8
Reviewed-on: https://gerrit.openafs.org/15437
Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
This commit is contained in:
Andrew Deason 2023-05-17 15:27:39 -05:00
parent 693bd0a330
commit e34e7bdf42
72 changed files with 144 additions and 213 deletions

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <sys/types.h>
#include <sys/param.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -32,10 +32,7 @@
*/
#include <afsconfig.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afs/param.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -1,6 +1,5 @@
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <sys/types.h>
#include <stdio.h>

View File

@ -1,6 +1,5 @@
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include "err.h"

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include "err.h"

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <unistd.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <sys/types.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -9,6 +9,9 @@
* Rewritten 8/98 by Conrad Minshall.
*/
#include <afsconfig.h>
#include <afs/param.h>
#include <sys/types.h>
#include <sys/stat.h>
#if defined(sun) || defined(_UWIN) || defined(__linux)

View File

@ -35,9 +35,8 @@
* Test if agetarg works as expected
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <unistd.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <unistd.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <unistd.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <sys/types.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <unistd.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <unistd.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -1,3 +1,6 @@
#include <afsconfig.h>
#include <afs/param.h>
#include <sys/fcntl.h>
#include <stdlib.h>
#include <stdarg.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <unistd.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <sys/stat.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <sys/types.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <grp.h>
#include <stdio.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <sys/types.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <unistd.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <fcntl.h>
#include <stdio.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <err.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <err.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <err.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <err.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include "err.h"

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include "err.h"

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include "err.h"

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -34,10 +34,6 @@
#include <afsconfig.h>
#include <afs/param.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@ -31,14 +31,13 @@
* SUCH DAMAGE.
*/
#include <afsconfig.h>
#include <afs/param.h>
#ifndef _LARGEFILE64_SOURCE
# define _LARGEFILE64_SOURCE
#endif
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <sys/types.h>
#include <stdio.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <unistd.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -31,9 +31,8 @@
* SUCH DAMAGE.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <afsconfig.h>
#include <afs/param.h>
#include <sys/types.h>