From 77507a2877b5722fe56bf5882847542d527b7d64 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 6 Mar 2016 11:12:10 +0100 Subject: [PATCH] dbus.c: DBUS_MSG_RETURN_HANDLE_TYPE_STRING is only used once So undefine this Signed-off-by: Uli Schlachter --- dbus.c | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/dbus.c b/dbus.c index e21f1d84..0bb52a1b 100644 --- a/dbus.c +++ b/dbus.c @@ -315,17 +315,14 @@ a_dbus_convert_value(lua_State *L, int idx, DBusMessageIter *iter) dbus_message_iter_append_basic(iter, DBUS_TYPE_BOOLEAN, &b); } break; -#define DBUS_MSG_RETURN_HANDLE_TYPE_STRING(dbustype) \ - case dbustype: \ - { \ - const char *s = lua_tostring(L, idx + 1); \ - if(!s) \ - s = ""; \ - dbus_message_iter_append_basic(iter, dbustype, &s); \ - } \ + case DBUS_TYPE_STRING: + { + const char *s = lua_tostring(L, idx + 1); + if(!s) + s = ""; + dbus_message_iter_append_basic(iter, DBUS_TYPE_STRING, &s); + } break; - DBUS_MSG_RETURN_HANDLE_TYPE_STRING(DBUS_TYPE_STRING) -#undef DBUS_MSG_RETURN_HANDLE_TYPE_STRING #define DBUS_MSG_RETURN_HANDLE_TYPE_NUMBER(type, dbustype) \ case dbustype: \ { \