Commit 25d683df 25d683df915468ae4f51d86f7f5c57f70e97bfdb by Sergey Poznyakoff

Added missing includes

1 parent fb5db38f
......@@ -24,6 +24,7 @@
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include <mailutils/argp.h>
#include <mailutils/error.h>
......@@ -160,7 +161,7 @@ mu_check_tls_environment (void)
if (stat (ssl_cert, &st) == -1)
{
mu_error ("%s: %s.", ssl_cert, strerror(errno));
mu_error ("%s: %s.", ssl_cert, mu_strerror (errno));
return 0;
}
if (!(st.st_mode & S_IFREG) || !(st.st_mode & S_IFLNK))
......@@ -172,7 +173,7 @@ mu_check_tls_environment (void)
if (stat (ssl_key, &st) == -1)
{
mu_error ("%s: %s.", ssl_key, strerror(errno));
mu_error ("%s: %s.", ssl_key, mu_strerror(errno));
return 0;
}
if (!(st.st_mode & S_IFREG) || !(st.st_mode & S_IFLNK))
......
......@@ -45,6 +45,7 @@
#include <mailutils/registrar.h>
#include <mailutils/stream.h>
#include <mailutils/nls.h>
#include <mailutils/tls.h>
const char *program_version = "from (" PACKAGE_STRING ")";
static char doc[] = N_("GNU from -- display from and subject");
......
......@@ -87,6 +87,7 @@
#include <mailutils/registrar.h>
#include <mailutils/stream.h>
#include <mailutils/mu_auth.h>
#include <mailutils/iterator.h>
#include <mailutils/url.h>
#include <mailutils/tls.h>
#include <mailutils/nls.h>
......
......@@ -64,6 +64,7 @@
#include <mailutils/body.h>
#include <mailutils/debug.h>
#include <mailutils/errno.h>
#include <mailutils/error.h>
#include <mailutils/envelope.h>
#include <mailutils/filter.h>
#include <mailutils/header.h>
......
......@@ -17,6 +17,7 @@
#include "mail.h"
#include <mailutils/mutil.h>
#include <mailutils/mime.h>
#include <pwd.h>
#ifdef HAVE_TERMIOS_H
# include <termios.h>
......@@ -750,7 +751,6 @@ comp (const void *item, const void *data)
void
util_slist_remove (list_t *list, char *value)
{
char *p;
list_comparator_t cp;
if (!*list)
......
......@@ -18,6 +18,7 @@
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <string.h>
#include <mailutils/mailutils.h>
#include <mailutils/argp.h>
#include <mu_asprintf.h>
......
......@@ -21,6 +21,7 @@
#include <errno.h>
#include <sys/types.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
......
......@@ -18,7 +18,6 @@
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <mailutils/argp.h>
#include "readmsg.h"
......
......@@ -41,6 +41,8 @@
#include <mailutils/url.h>
#include <mailutils/nls.h>
#include <mailutils/tls.h>
#include <mailutils/argp.h>
#include <mailutils/error.h>
int msglist __P ((mailbox_t mbox, int show_all, int argc, char **argv, int **set, int *n));
......