summaryrefslogtreecommitdiffstats
path: root/src/voicecall.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2009-07-29 10:55:00 -0500
committerDenis Kenzior <denkenz@gmail.com>2009-07-29 12:26:06 -0500
commit54816de04d1122f6c9716bff5a0cf5d94c692c6d (patch)
treeaf73680ab469fec6318f713a1175ae55d43be517 /src/voicecall.c
parent1d8785f8bd83d8a33502c63a9d713e1da215fccd (diff)
downloadofono-54816de04d1122f6c9716bff5a0cf5d94c692c6d.tar.bz2
Get rid of dbus-gsm.h
Diffstat (limited to 'src/voicecall.c')
-rw-r--r--src/voicecall.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/voicecall.c b/src/voicecall.c
index 2d8669c1..f5a969c6 100644
--- a/src/voicecall.c
+++ b/src/voicecall.c
@@ -27,7 +27,6 @@
#include <stdio.h>
#include <time.h>
-#include <dbus/dbus.h>
#include <glib.h>
#include <gdbus.h>
@@ -35,7 +34,6 @@
#include "driver.h"
#include "common.h"
-#include "dbus-gsm.h"
#include "modem.h"
#include "cssn.h"
@@ -349,9 +347,9 @@ static void voicecall_destroy(gpointer userdata)
static const char *voicecall_build_path(struct ofono_modem *modem,
const struct ofono_call *call)
{
- static char path[MAX_DBUS_PATH_LEN];
+ static char path[256];
- snprintf(path, MAX_DBUS_PATH_LEN, "%s/voicecall%02d",
+ snprintf(path, sizeof(path), "%s/voicecall%02d",
modem->path, call->id);
return path;
@@ -931,7 +929,7 @@ static DBusMessage *multiparty_private_chat(DBusConnection *conn,
DBUS_TYPE_INVALID) == FALSE)
return __ofono_error_invalid_args(msg);
- if (strlen(callpath) == 0 || strlen(callpath) > MAX_DBUS_PATH_LEN)
+ if (strlen(callpath) == 0)
return __ofono_error_invalid_format(msg);
c = strrchr(callpath, '/');