dbus.c: DBUS_MSG_RETURN_HANDLE_TYPE_STRING is only used once
So undefine this Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
9a030ba299
commit
77507a2877
17
dbus.c
17
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: \
|
||||
{ \
|
||||
|
|
Loading…
Reference in New Issue