aboutsummaryrefslogtreecommitdiffstats
path: root/src/lmtp.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-24 18:38:11 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-24 18:38:11 +0300
commit5dbf570b7df0e7c9770432884f95c14b193b5b30 (patch)
tree547448e51751b47179c46b19b9d26f2991642b30 /src/lmtp.c
parent616e4a7d03fba715185f55d1298cc09377313591 (diff)
downloadrspamd-5dbf570b7df0e7c9770432884f95c14b193b5b30.tar.gz
rspamd-5dbf570b7df0e7c9770432884f95c14b193b5b30.zip
* Fix many compile time warnings and polish code
Diffstat (limited to 'src/lmtp.c')
-rw-r--r--src/lmtp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lmtp.c b/src/lmtp.c
index a8f10ee2c..d649d11c3 100644
--- a/src/lmtp.c
+++ b/src/lmtp.c
@@ -28,6 +28,7 @@
#include "lmtp.h"
#include "lmtp_proto.h"
#include "cfg_file.h"
+#include "util.h"
#include "url.h"
#include "modules.h"
#include "message.h"
@@ -155,6 +156,9 @@ lmtp_read_socket (f_str_t *in, void *arg)
lmtp_write_socket (lmtp);
}
break;
+ default:
+ msg_debug ("lmtp_read_socket: invalid state while reading from socket %d", lmtp->task->state);
+ break;
}
}
@@ -183,6 +187,9 @@ lmtp_write_socket (void *arg)
msg_debug ("lmtp_write_socket: normally closing connection");
free_task (lmtp, TRUE);
break;
+ default:
+ msg_debug ("lmtp_write_socket: invalid state while writing to socket %d", lmtp->task->state);
+ break;
}
}