aboutsummaryrefslogtreecommitdiffstats
path: root/plugin_pop3.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-05-31 21:05:13 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-05-31 21:05:13 +0000
commit10ff23f9cdef25d4140e6c802c373aaf48270fee (patch)
tree8fba3e9219ffe15e92df6f1b441774ee8285b08d /plugin_pop3.c
parent4e1eaa7205d8b7fbc64dc685d864b385a25602be (diff)
downloadlcd4linux-10ff23f9cdef25d4140e6c802c373aaf48270fee.tar.gz
[lcd4linux @ 2004-05-31 21:05:13 by reinelt]
fixed lots of bugs in the Cwlinux driver do not emit EAGAIN error on the first retry made plugin_i2c_sensors a bit less 'chatty' moved init and exit functions to the bottom of plugin_pop3 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@453 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'plugin_pop3.c')
-rw-r--r--plugin_pop3.c47
1 files changed, 28 insertions, 19 deletions
diff --git a/plugin_pop3.c b/plugin_pop3.c
index e93ae91..166db8f 100644
--- a/plugin_pop3.c
+++ b/plugin_pop3.c
@@ -1,4 +1,4 @@
-/* $Id: plugin_pop3.c,v 1.3 2004/05/20 07:14:46 reinelt Exp $
+/* $Id: plugin_pop3.c,v 1.4 2004/05/31 21:05:13 reinelt Exp $
*
* Plugin to check POP3 mail accounts
*
@@ -27,6 +27,13 @@
*
*
* $Log: plugin_pop3.c,v $
+ * Revision 1.4 2004/05/31 21:05:13 reinelt
+ *
+ * fixed lots of bugs in the Cwlinux driver
+ * do not emit EAGAIN error on the first retry
+ * made plugin_i2c_sensors a bit less 'chatty'
+ * moved init and exit functions to the bottom of plugin_pop3
+ *
* Revision 1.3 2004/05/20 07:14:46 reinelt
* made all local functions static
*
@@ -173,24 +180,6 @@ static int getConfig (void)
return(n);
}
-int plugin_init_pop3(void)
-{
-
- int n = getConfig();
- // by now, head should point to a list of all our accounts
- if (head)
- {
- info("[POP3] %d POP3 accounts have been succesfully defined",n);
- AddFunction ("POP3check", 1, my_POP3check);
- }
- return 0;
-}
-
-void plugin_exit_pop3(void)
-{
- check_destroy(&head);
-}
-
// ************************ LIST ***********************************
static struct check *check_node_alloc(void)
{
@@ -341,3 +330,23 @@ static int tcp_connect(struct check *hi)
return(sockfd);
}
+
+
+int plugin_init_pop3(void)
+{
+
+ int n = getConfig();
+ // by now, head should point to a list of all our accounts
+ if (head)
+ {
+ info("[POP3] %d POP3 accounts have been succesfully defined",n);
+ AddFunction ("POP3check", 1, my_POP3check);
+ }
+ return 0;
+}
+
+void plugin_exit_pop3(void)
+{
+ check_destroy(&head);
+}
+