1 |
#include <stdio.h> |
#include <stdio.h> |
2 |
|
#include <stdlib.h> |
3 |
#include <unistd.h> |
#include <unistd.h> |
4 |
#include <string.h> |
#include <string.h> |
5 |
#include <limits.h> |
#include <limits.h> |
20 |
/* |
/* |
21 |
* In the beginning there was main()... |
* In the beginning there was main()... |
22 |
*/ |
*/ |
23 |
int main(int argc, char **argv) |
int main(int argc, char *argv[]) |
24 |
{ |
{ |
25 |
int c; |
int c; |
26 |
char *confile = NULL; /* Configuration file. */ |
char *confile = NULL; /* Configuration file. */ |
62 |
|
|
63 |
for (ca = accounts; ca; ca = ca->next) { |
for (ca = accounts; ca; ca = ca->next) { |
64 |
|
|
65 |
|
#ifndef SSL_TLS |
66 |
if (init_connection(ca->server, ca->port)) { |
if (init_connection(ca->server, ca->port)) { |
67 |
|
#else |
68 |
|
if (init_connection(ca->server, ca->port, ca->ssl)) { |
69 |
|
#endif |
70 |
close_logfile(); |
close_logfile(); |
71 |
exit(ERROR_NETWORK); |
exit(ERROR_NETWORK); |
72 |
} |
} |