Skip to content

Commit

Permalink
iwyu: tidy headers
Browse files Browse the repository at this point in the history
  • Loading branch information
flatcap committed Jan 13, 2023
1 parent db304a9 commit b86b3f4
Show file tree
Hide file tree
Showing 19 changed files with 9 additions and 24 deletions.
1 change: 1 addition & 0 deletions color/color.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
*/

#include "config.h"
#include <stdbool.h>
#include <stdio.h>
#include "mutt/lib.h"
#include "core/lib.h"
Expand Down
4 changes: 3 additions & 1 deletion color/color.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
#ifndef MUTT_COLOR_COLOR_H
#define MUTT_COLOR_COLOR_H

#include "config.h"
#include <stdbool.h>

/**
* enum ColorId - List of all colored objects
*
Expand Down Expand Up @@ -88,7 +91,6 @@ enum ColorId
MT_COLOR_MAX,
};

#include "config.h"
#include <stdint.h>
#include "mutt/lib.h"

Expand Down
1 change: 0 additions & 1 deletion conn/gsasl.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include "config.h"
#include <gsasl.h>
#include <stdbool.h>
#include <string.h>
#include "mutt/lib.h"
#include "connaccount.h"
#include "connection.h"
Expand Down
1 change: 0 additions & 1 deletion handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
*/

#include "config.h"
#include <stddef.h>
#include <ctype.h>
#include <iconv.h>
#include <stdbool.h>
Expand Down
2 changes: 1 addition & 1 deletion imap/auth_gss.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
*/

#include "config.h"
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <string.h>
#include "private.h"
Expand Down
2 changes: 1 addition & 1 deletion imap/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
*/

#include "config.h"
#include <arpa/inet.h>
#include <ctype.h>
#include <errno.h>
#include <netdb.h>
#include <netinet/in.h>
#include <signal.h>
#include <stdbool.h>
#include <stdio.h>
Expand Down
1 change: 0 additions & 1 deletion init.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
*/

#include "config.h"
#include <stddef.h>
#include <ctype.h>
#include <pwd.h>
#include <stdbool.h>
Expand Down
1 change: 0 additions & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@

#include "config.h"
#include <errno.h>
#include <getopt.h>
#include <limits.h>
#include <locale.h>
#include <pwd.h>
Expand Down
1 change: 0 additions & 1 deletion mixmaster/remailer.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
*/

#include "config.h"
#include <stddef.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
Expand Down
1 change: 0 additions & 1 deletion monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
#include <poll.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <sys/inotify.h>
#include <sys/stat.h>
Expand Down
4 changes: 0 additions & 4 deletions ncrypt/crypt_gpgme.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
#include <locale.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
Expand Down Expand Up @@ -68,9 +67,6 @@
#ifdef USE_AUTOCRYPT
#include "autocrypt/lib.h"
#endif
#ifdef ENABLE_NLS
#include <libintl.h>
#endif

// clang-format off
/* Values used for comparing addresses. */
Expand Down
3 changes: 0 additions & 3 deletions ncrypt/dlg_gpgme.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,6 @@
#include "mutt_logging.h"
#include "muttlib.h"
#include "opcodes.h"
#ifdef ENABLE_NLS
#include <libintl.h>
#endif

/// Help Bar for the GPGME key selection dialog
static const struct Mapping GpgmeHelp[] = {
Expand Down
1 change: 0 additions & 1 deletion ncrypt/pgpkey.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
*/

#include "config.h"
#include <locale.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
Expand Down
3 changes: 0 additions & 3 deletions pager/functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@
#include "opcodes.h"
#include "private_data.h"
#include "protos.h"
#ifdef ENABLE_NLS
#include <libintl.h>
#endif

static const char *Not_available_in_this_menu = N_("Not available in this menu");

Expand Down
1 change: 1 addition & 0 deletions pop/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <stdint.h>
#include "private.h"
#include "mutt/lib.h"
#include "conn/lib.h"

/**
* pop_auth_validator - Validate the "pop_authenticators" config variable - Implements ConfigDef::validator() - @ingroup cfg_def_validator
Expand Down
2 changes: 1 addition & 1 deletion pop/lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
*/

#include "config.h"
#include <arpa/inet.h>
#include <errno.h>
#include <netdb.h>
#include <netinet/in.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down
1 change: 0 additions & 1 deletion resize.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
*/

#include "config.h"
#include <stddef.h>
#include <fcntl.h>
#include <unistd.h>
#include "mutt/lib.h"
Expand Down
2 changes: 1 addition & 1 deletion send/smtp.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
/* This file contains code for direct SMTP delivery of email messages. */

#include "config.h"
#include <arpa/inet.h>
#include <netdb.h>
#include <netinet/in.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
Expand Down
1 change: 0 additions & 1 deletion store/bdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
#include <fcntl.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <sys/stat.h>
#include <unistd.h>
#include "mutt/lib.h"
Expand Down

0 comments on commit b86b3f4

Please sign in to comment.