Commit 25d683df 25d683df915468ae4f51d86f7f5c57f70e97bfdb by Sergey Poznyakoff

Added missing includes

1 parent fb5db38f
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
24 #include <unistd.h> 24 #include <unistd.h>
25 #include <sys/types.h> 25 #include <sys/types.h>
26 #include <sys/stat.h> 26 #include <sys/stat.h>
27 #include <string.h>
27 28
28 #include <mailutils/argp.h> 29 #include <mailutils/argp.h>
29 #include <mailutils/error.h> 30 #include <mailutils/error.h>
...@@ -160,7 +161,7 @@ mu_check_tls_environment (void) ...@@ -160,7 +161,7 @@ mu_check_tls_environment (void)
160 161
161 if (stat (ssl_cert, &st) == -1) 162 if (stat (ssl_cert, &st) == -1)
162 { 163 {
163 mu_error ("%s: %s.", ssl_cert, strerror(errno)); 164 mu_error ("%s: %s.", ssl_cert, mu_strerror (errno));
164 return 0; 165 return 0;
165 } 166 }
166 if (!(st.st_mode & S_IFREG) || !(st.st_mode & S_IFLNK)) 167 if (!(st.st_mode & S_IFREG) || !(st.st_mode & S_IFLNK))
...@@ -172,7 +173,7 @@ mu_check_tls_environment (void) ...@@ -172,7 +173,7 @@ mu_check_tls_environment (void)
172 173
173 if (stat (ssl_key, &st) == -1) 174 if (stat (ssl_key, &st) == -1)
174 { 175 {
175 mu_error ("%s: %s.", ssl_key, strerror(errno)); 176 mu_error ("%s: %s.", ssl_key, mu_strerror(errno));
176 return 0; 177 return 0;
177 } 178 }
178 if (!(st.st_mode & S_IFREG) || !(st.st_mode & S_IFLNK)) 179 if (!(st.st_mode & S_IFREG) || !(st.st_mode & S_IFLNK))
......
...@@ -45,6 +45,7 @@ ...@@ -45,6 +45,7 @@
45 #include <mailutils/registrar.h> 45 #include <mailutils/registrar.h>
46 #include <mailutils/stream.h> 46 #include <mailutils/stream.h>
47 #include <mailutils/nls.h> 47 #include <mailutils/nls.h>
48 #include <mailutils/tls.h>
48 49
49 const char *program_version = "from (" PACKAGE_STRING ")"; 50 const char *program_version = "from (" PACKAGE_STRING ")";
50 static char doc[] = N_("GNU from -- display from and subject"); 51 static char doc[] = N_("GNU from -- display from and subject");
......
...@@ -87,6 +87,7 @@ ...@@ -87,6 +87,7 @@
87 #include <mailutils/registrar.h> 87 #include <mailutils/registrar.h>
88 #include <mailutils/stream.h> 88 #include <mailutils/stream.h>
89 #include <mailutils/mu_auth.h> 89 #include <mailutils/mu_auth.h>
90 #include <mailutils/iterator.h>
90 #include <mailutils/url.h> 91 #include <mailutils/url.h>
91 #include <mailutils/tls.h> 92 #include <mailutils/tls.h>
92 #include <mailutils/nls.h> 93 #include <mailutils/nls.h>
......
...@@ -64,6 +64,7 @@ ...@@ -64,6 +64,7 @@
64 #include <mailutils/body.h> 64 #include <mailutils/body.h>
65 #include <mailutils/debug.h> 65 #include <mailutils/debug.h>
66 #include <mailutils/errno.h> 66 #include <mailutils/errno.h>
67 #include <mailutils/error.h>
67 #include <mailutils/envelope.h> 68 #include <mailutils/envelope.h>
68 #include <mailutils/filter.h> 69 #include <mailutils/filter.h>
69 #include <mailutils/header.h> 70 #include <mailutils/header.h>
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
17 17
18 #include "mail.h" 18 #include "mail.h"
19 #include <mailutils/mutil.h> 19 #include <mailutils/mutil.h>
20 #include <mailutils/mime.h>
20 #include <pwd.h> 21 #include <pwd.h>
21 #ifdef HAVE_TERMIOS_H 22 #ifdef HAVE_TERMIOS_H
22 # include <termios.h> 23 # include <termios.h>
...@@ -750,7 +751,6 @@ comp (const void *item, const void *data) ...@@ -750,7 +751,6 @@ comp (const void *item, const void *data)
750 void 751 void
751 util_slist_remove (list_t *list, char *value) 752 util_slist_remove (list_t *list, char *value)
752 { 753 {
753 char *p;
754 list_comparator_t cp; 754 list_comparator_t cp;
755 755
756 if (!*list) 756 if (!*list)
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
18 #ifdef HAVE_CONFIG_H 18 #ifdef HAVE_CONFIG_H
19 # include <config.h> 19 # include <config.h>
20 #endif 20 #endif
21 #include <string.h>
21 #include <mailutils/mailutils.h> 22 #include <mailutils/mailutils.h>
22 #include <mailutils/argp.h> 23 #include <mailutils/argp.h>
23 #include <mu_asprintf.h> 24 #include <mu_asprintf.h>
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
21 21
22 #include <errno.h> 22 #include <errno.h>
23 #include <sys/types.h> 23 #include <sys/types.h>
24 #include <unistd.h>
24 #include <string.h> 25 #include <string.h>
25 #include <stdlib.h> 26 #include <stdlib.h>
26 #include <stdio.h> 27 #include <stdio.h>
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
18 #ifdef HAVE_CONFIG_H 18 #ifdef HAVE_CONFIG_H
19 # include <config.h> 19 # include <config.h>
20 #endif 20 #endif
21 #include <mailutils/argp.h>
22 21
23 #include "readmsg.h" 22 #include "readmsg.h"
24 23
......
...@@ -41,6 +41,8 @@ ...@@ -41,6 +41,8 @@
41 #include <mailutils/url.h> 41 #include <mailutils/url.h>
42 #include <mailutils/nls.h> 42 #include <mailutils/nls.h>
43 #include <mailutils/tls.h> 43 #include <mailutils/tls.h>
44 #include <mailutils/argp.h>
45 #include <mailutils/error.h>
44 46
45 int msglist __P ((mailbox_t mbox, int show_all, int argc, char **argv, int **set, int *n)); 47 int msglist __P ((mailbox_t mbox, int show_all, int argc, char **argv, int **set, int *n));
46 48
......