aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicowallmeier <nicowallmeier@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-04-17 13:05:58 +0000
committernicowallmeier <nicowallmeier@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-04-17 13:05:58 +0000
commit749b60b30b173296a0a7e041521645913aa05808 (patch)
treed3d1533d532a03cdcf4f86737ae7dcf594856c48
parentbbfa7a3b4f1c2d7ec0261eda29154fa6c9849e93 (diff)
downloadlcd4linux-749b60b30b173296a0a7e041521645913aa05808.tar.gz
[lcd4linux @ 2004-04-17 13:03:34 by nicowallmeier]
minor bugfix git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@419 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
-rw-r--r--plugin_pop3.c8
-rwxr-xr-xplugin_wireless.c7
2 files changed, 11 insertions, 4 deletions
diff --git a/plugin_pop3.c b/plugin_pop3.c
index 9d7c35e..6768583 100644
--- a/plugin_pop3.c
+++ b/plugin_pop3.c
@@ -1,4 +1,4 @@
-/* $Id: plugin_pop3.c,v 1.1 2004/04/08 11:59:26 reinelt Exp $
+/* $Id: plugin_pop3.c,v 1.2 2004/04/17 13:03:34 nicowallmeier Exp $
*
* Plugin to check POP3 mail accounts
*
@@ -27,6 +27,9 @@
*
*
* $Log: plugin_pop3.c,v $
+ * Revision 1.2 2004/04/17 13:03:34 nicowallmeier
+ * minor bugfix
+ *
* Revision 1.1 2004/04/08 11:59:26 reinelt
* added plugin_pop3 from Javi
*
@@ -118,12 +121,13 @@ static int getConfig (void)
for (i =1;i <= MAX_NUM_ACCOUNTS; i++)
{
+ char *x;
sprintf(user,"user%d",i);
sprintf(password,"password%d",i);
sprintf(server,"server%d",i);
sprintf(port,"port%d",i);
- char *x = cfg_get (Section, server, "");
+ x = cfg_get (Section, server, "");
if (*x=='\0')
{
info ("[POP3] No '%s.%s' entry from %s, disabling POP3 account #%d", Section, server, cfg_source(),i);
diff --git a/plugin_wireless.c b/plugin_wireless.c
index f5d340d..b42239d 100755
--- a/plugin_wireless.c
+++ b/plugin_wireless.c
@@ -1,4 +1,4 @@
-/* $Id: plugin_wireless.c,v 1.1 2004/04/07 08:29:05 hejl Exp $
+/* $Id: plugin_wireless.c,v 1.2 2004/04/17 13:05:58 nicowallmeier Exp $
*
* Wireless Extension plugin
*
@@ -28,6 +28,9 @@
*
*
* $Log: plugin_wireless.c,v $
+ * Revision 1.2 2004/04/17 13:05:58 nicowallmeier
+ * minor bugfix
+ *
* Revision 1.1 2004/04/07 08:29:05 hejl
* New plugin for wireless info
*
@@ -514,8 +517,8 @@ static int check_socket() {
static void save_result(RESULT *result, char* dev, char* key, int res) {
char key_buffer[64];
- qprintf(key_buffer, sizeof(key_buffer), "%s.%s", dev,key);
char* val=NULL;
+ qprintf(key_buffer, sizeof(key_buffer), "%s.%s", dev,key);
if (res<0) {
SetResult(&result, R_STRING, "");