summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c15f01c)
raw | patch | inline | side by side (parent: c15f01c)
author | Sebastian Harl <sh@tokkee.org> | |
Mon, 18 Dec 2006 14:18:35 +0000 (15:18 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Mon, 18 Dec 2006 20:04:07 +0000 (21:04 +0100) |
Signed-off-by: Sebastian Harl <sh@tokkee.org>
src/email.c | patch | blob | history |
diff --git a/src/email.c b/src/email.c
index 9fbe14c4658e83388775de894616428feaf57246..9bcd5bfb7581cfe9b0663f329ca2f6ba90f67447 100644 (file)
--- a/src/email.c
+++ b/src/email.c
/* Read a single character from the socket. If an error occurs or end-of-file
* is reached return '\0'. */
-char read_char (conn_t *src)
+static char read_char (conn_t *src)
{
char ret = '\0';
return '\0';
} while (EINTR == errno);
return ret;
-} /* char read_char (conn_t *) */
+} /* static char read_char (conn_t *) */
/* Read a single line (terminated by '\n') from the the socket.
*
* characters of the input stream, the line will will be ignored! By
* definition we should not get any longer input lines, thus this is
* acceptable in this case ;-) */
-char *read_line (conn_t *src)
+static char *read_line (conn_t *src)
{
int i = 0;
src->length = i;
return src->buffer;
-} /* char *read_line (conn_t *) */
+} /* static char *read_line (conn_t *) */
static void *collect (void *arg)
{
free (buffer);
pthread_exit ((void *)0);
-} /* void *collect (void *) */
+} /* static void *collect (void *) */
static void *open_connection (void *arg)
{
pthread_cond_signal (&conn_available);
}
pthread_exit ((void *)0);
-} /* void *open_connection (void *) */
+} /* static void *open_connection (void *) */
#endif /* EMAIL_HAVE_READ */
static void email_init (void)
plugin_submit ("email_spam_score", NULL, buf);
return;
-}
+} /* static void score_submit (double) */
static void email_read (void)
{