From 857b08c16b70a5e949e8215061a765bc7b4dcbc6 Mon Sep 17 00:00:00 2001 From: bagyenda <> Date: Fri, 15 Apr 2005 05:14:05 +0000 Subject: [PATCH] Minor code fixes. --- mbuni/mmlib/mms_strings.c | 8 -------- mbuni/mmlib/mms_strings.h | 1 - mbuni/mmsc/mmsmobilesender.c | 4 ++-- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/mbuni/mmlib/mms_strings.c b/mbuni/mmlib/mms_strings.c index 6eb6eb1..798362f 100644 --- a/mbuni/mmlib/mms_strings.c +++ b/mbuni/mmlib/mms_strings.c @@ -10,16 +10,8 @@ * This program is free software, distributed under the terms of * the GNU General Public License, with a few exceptions granted (see LICENSE) */ -#include "gwlib/gwlib.h" -#include "mms_strings.h" - - -/* mms_strings.c: lookup code for various tables defined by MMS standard - * Adapted from wsp_strings.c - */ #include "gwlib/gwlib.h" - #include "mms_strings.h" diff --git a/mbuni/mmlib/mms_strings.h b/mbuni/mmlib/mms_strings.h index e89cda8..346d2e8 100644 --- a/mbuni/mmlib/mms_strings.h +++ b/mbuni/mmlib/mms_strings.h @@ -30,7 +30,6 @@ long mms_string_to_versioned_##name(Octstr *ostr, int version); #define LINEAR(name,strings) -#define LINEAR(name, strings) #define STRING(string) #define NAMED(name, strings) enum mms_##name##_enum { strings mms_##name##_dummy }; #define NSTRING(string, name) name, diff --git a/mbuni/mmsc/mmsmobilesender.c b/mbuni/mmsc/mmsmobilesender.c index f816243..83a4b8f 100644 --- a/mbuni/mmsc/mmsmobilesender.c +++ b/mbuni/mmsc/mmsmobilesender.c @@ -459,7 +459,7 @@ void mbuni_mm1_queue_runner(void *unused) if (gwthread_create((gwthread_func_t *)receive_push_reply, httpcaller) < 0) { /* Listener thread. */ error(0, "Mobile sender: Failed to create push reply thread: %d: %s!", errno, strerror(errno)); - return -1; + return; } mms_queue_run(octstr_get_cstr(settings->mm1_queuedir), @@ -468,7 +468,7 @@ void mbuni_mm1_queue_runner(void *unused) http_caller_signal_shutdown(httpcaller); sleep(2); http_caller_destroy(httpcaller); - return 0; + return; }