summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 98ab507)
raw | patch | inline | side by side (parent: 98ab507)
author | Benjamin Jacobs <jacobsbenja@gmail.com> | |
Sun, 2 Sep 2012 21:54:35 +0000 (23:54 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Tue, 4 Sep 2012 08:30:01 +0000 (10:30 +0200) |
Fix gcc warn/error: no return statement in function returning non-void [-Werror=return-type]
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Sebastian Harl <sh@tokkee.org>
src/amqp.c | patch | blob | history | |
src/email.c | patch | blob | history |
diff --git a/src/amqp.c b/src/amqp.c
index 55d2a2ceff04f3772e43c21c4288ec6d97c1ddb2..89284c81962ea127d4c901ee0c64e7aceb13275a 100644 (file)
--- a/src/amqp.c
+++ b/src/amqp.c
camqp_config_free (conf);
pthread_exit (NULL);
+ return (NULL);
} /* }}} void *camqp_subscribe_thread */
static int camqp_subscribe_init (camqp_config_t *conf) /* {{{ */
diff --git a/src/email.c b/src/email.c
index 8fc5509f3e7e5ece33a15015b0ffa40fde6d6ede..5870ab1de1498593d4636973a65444d4e918d558 100644 (file)
--- a/src/email.c
+++ b/src/email.c
} /* while (1) */
pthread_exit ((void *)0);
+ return ((void *) 0);
} /* static void *collect (void *) */
static void *open_connection (void __attribute__((unused)) *arg)
pthread_cond_signal (&conn_available);
}
- pthread_exit ((void *)0);
+
+ pthread_exit ((void *) 0);
+ return ((void *) 0);
} /* static void *open_connection (void *) */
static int email_init (void)