summaryrefslogtreecommitdiffstats
path: root/src/lmtp.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-10-06 20:03:57 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-10-06 20:03:57 +0400
commit6b306ab8752befc28d259be55495f8249cc2df24 (patch)
tree0fa3d471aef61925563709e0f8ee5667b57c7a9d /src/lmtp.c
parent8d0053734fb5a4ccd8c3bda731e6b7c8261c6f67 (diff)
downloadrspamd-6b306ab8752befc28d259be55495f8249cc2df24.tar.gz
rspamd-6b306ab8752befc28d259be55495f8249cc2df24.zip
Fixes types (use glib ones) no functional change.
Now all comments in commit logs beginning with '*' would be included in changelog, so important changes would be separated from small ones.
Diffstat (limited to 'src/lmtp.c')
-rw-r--r--src/lmtp.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lmtp.c b/src/lmtp.c
index c3d1bf901..6e7d38c99 100644
--- a/src/lmtp.c
+++ b/src/lmtp.c
@@ -33,17 +33,17 @@
#include "modules.h"
#include "message.h"
-static char greetingbuf[1024];
+static gchar greetingbuf[1024];
static struct timeval io_tv;
static gboolean lmtp_write_socket (void *arg);
#ifndef HAVE_SA_SIGINFO
static void
-sig_handler (int signo)
+sig_handler (gint signo)
#else
static void
-sig_handler (int signo, siginfo_t *info, void *unused)
+sig_handler (gint signo, siginfo_t *info, void *unused)
#endif
{
switch (signo) {
@@ -61,7 +61,7 @@ sig_handler (int signo, siginfo_t *info, void *unused)
* Config reload is designed by sending sigusr to active workers and pending shutdown of them
*/
static void
-sigusr_handler (int fd, short what, void *arg)
+sigusr_handler (gint fd, short what, void *arg)
{
struct rspamd_worker *worker = (struct rspamd_worker *)arg;
/* Do not accept new connections, preparing to end worker's process */
@@ -221,14 +221,14 @@ lmtp_err_socket (GError * err, void *arg)
* Accept new connection and construct task
*/
static void
-accept_socket (int fd, short what, void *arg)
+accept_socket (gint fd, short what, void *arg)
{
struct rspamd_worker *worker = (struct rspamd_worker *)arg;
union sa_union su;
struct worker_task *new_task;
struct rspamd_lmtp_proto *lmtp;
socklen_t addrlen = sizeof (su.ss);
- int nfd;
+ gint nfd;
if ((nfd = accept_from_socket (fd, (struct sockaddr *)&su.ss, &addrlen)) == -1) {
msg_warn ("accept failed: %s", strerror (errno));
@@ -274,9 +274,9 @@ void
start_lmtp_worker (struct rspamd_worker *worker)
{
struct sigaction signals;
- int i;
- char *hostbuf;
- long int hostmax;
+ gint i;
+ gchar *hostbuf;
+ gsize hostmax;
worker->srv->pid = getpid ();
worker->srv->type = TYPE_LMTP;