Skip to content

Commit

Permalink
Fix includes
Browse files Browse the repository at this point in the history
  • Loading branch information
tavianator committed Aug 29, 2024
1 parent b3636fa commit ac02de9
Show file tree
Hide file tree
Showing 14 changed files with 10 additions and 10 deletions.
1 change: 1 addition & 0 deletions src/bar.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <signal.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <termios.h>
Expand Down
3 changes: 2 additions & 1 deletion src/ctx.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@
#include "sighook.h"
#include "stat.h"
#include "trie.h"
#include "xtime.h"

#include <errno.h>
#include <limits.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <time.h>
#include <unistd.h>

/** Get the initial value for ctx->threads (-j). */
Expand Down
1 change: 0 additions & 1 deletion src/diag.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include "dstring.h"
#include "expr.h"

#include <errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down
1 change: 1 addition & 0 deletions src/eval.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include <fnmatch.h>
#include <grp.h>
#include <pwd.h>
#include <signal.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
Expand Down
1 change: 1 addition & 0 deletions src/opt.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include "opt.h"

#include "bfs.h"
#include "bfstd.h"
#include "bftw.h"
#include "bit.h"
#include "color.h"
Expand Down
2 changes: 0 additions & 2 deletions src/pwcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
#include <grp.h>
#include <pwd.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

/** Represents cache hits for negative results. */
static void *MISSING = &MISSING;
Expand Down
1 change: 1 addition & 0 deletions src/sighook.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include "thread.h"

#include <errno.h>
#include <pthread.h>
#include <signal.h>
#include <stdlib.h>
#include <unistd.h>
Expand Down
1 change: 0 additions & 1 deletion tests/bfstd.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include "bfstd.h"
#include "diag.h"

#include <errno.h>
#include <langinfo.h>
#include <stdlib.h>
#include <string.h>
Expand Down
1 change: 0 additions & 1 deletion tests/bit.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

#include "bfs.h"
#include "bit.h"
#include "diag.h"

#include <limits.h>
#include <stdint.h>
Expand Down
2 changes: 0 additions & 2 deletions tests/ioq.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@

#include "tests.h"

#include "bfstd.h"
#include "diag.h"
#include "dir.h"
#include "ioq.h"

#include <errno.h>
#include <fcntl.h>
#include <stdlib.h>

Expand Down
3 changes: 3 additions & 0 deletions tests/list.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
#include "tests.h"

#include "bfs.h"
#include "diag.h"
#include "list.h"

#include <stddef.h>

struct item {
int n;
struct item *next;
Expand Down
1 change: 0 additions & 1 deletion tests/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

#include "tests.h"

#include "bfstd.h"
#include "color.h"

#include <locale.h>
Expand Down
1 change: 1 addition & 0 deletions tests/sighook.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "thread.h"
#include "sighook.h"

#include <stddef.h>
#include <errno.h>
#include <pthread.h>
#include <signal.h>
Expand Down
1 change: 0 additions & 1 deletion tests/xtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include "tests.h"

#include "bfs.h"
#include "bfstd.h"
#include "diag.h"
#include "xtime.h"

Expand Down

0 comments on commit ac02de9

Please sign in to comment.