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);
|
dbus_message_iter_append_basic(iter, DBUS_TYPE_BOOLEAN, &b);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#define DBUS_MSG_RETURN_HANDLE_TYPE_STRING(dbustype) \
|
case DBUS_TYPE_STRING:
|
||||||
case dbustype: \
|
{
|
||||||
{ \
|
const char *s = lua_tostring(L, idx + 1);
|
||||||
const char *s = lua_tostring(L, idx + 1); \
|
if(!s)
|
||||||
if(!s) \
|
s = "";
|
||||||
s = ""; \
|
dbus_message_iter_append_basic(iter, DBUS_TYPE_STRING, &s);
|
||||||
dbus_message_iter_append_basic(iter, dbustype, &s); \
|
}
|
||||||
} \
|
|
||||||
break;
|
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) \
|
#define DBUS_MSG_RETURN_HANDLE_TYPE_NUMBER(type, dbustype) \
|
||||||
case dbustype: \
|
case dbustype: \
|
||||||
{ \
|
{ \
|
||||||
|
|
Loading…
Reference in New Issue