diff options
author | keramida <keramida@FreeBSD.org> | 2011-01-06 20:05:24 +0000 |
---|---|---|
committer | keramida <keramida@FreeBSD.org> | 2011-01-06 20:05:24 +0000 |
commit | 406dbc36d263fb5aa578c85efc239621e4d0bad9 (patch) | |
tree | 11c0d38c9e31f8a50442e282614735aa01ea8d54 /tools/regression/acct/pack.c | |
parent | ee5033e8f0192f4ec52128873d46c3fad63d326b (diff) | |
download | FreeBSD-src-406dbc36d263fb5aa578c85efc239621e4d0bad9.zip FreeBSD-src-406dbc36d263fb5aa578c85efc239621e4d0bad9.tar.gz |
tests: sort & fix includes, remove -include from CFLAGS of acct tests
- Sort the includes of pack.c, moving sys/*.h files near the top.
- Add a couple of missing #include lines, and remove the need for
custom -include options in the CFLAGS of the test Makefile.
- Remove the ad-hoc 'all' target, but keep its 'regress' bits for
testing.
- Convert the ad-hoc 'clean' target to proper CLEANFILES stuff,
so that the normal bsd.prog.mk machinery can clean up.
- Use `make -V .OBJDIR' to detect the place where 'pack' lives,
so that regress.t works both with and without 'make obj'.
Reviewed by: uqs
MFC after: 1 week
Diffstat (limited to 'tools/regression/acct/pack.c')
-rw-r--r-- | tools/regression/acct/pack.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/regression/acct/pack.c b/tools/regression/acct/pack.c index 122b623..d1d3085 100644 --- a/tools/regression/acct/pack.c +++ b/tools/regression/acct/pack.c @@ -25,15 +25,18 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); +#include <sys/types.h> + #include <assert.h> #include <float.h> +#include <limits.h> #include <math.h> #include <stdio.h> +#include <stdint.h> #include <stdlib.h> #include <strings.h> - -#include <sys/time.h> -#include <sys/types.h> +#include <syslog.h> +#include <time.h> #define KASSERT(val, msg) assert(val) |