D-Bus: Make wpas_dbus_error_scan_error() static

This function is not used anywhere outside this file.

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2014-12-31 11:00:31 +02:00
parent 2544394406
commit 3cccf0b870

View file

@ -125,16 +125,12 @@ DBusMessage * wpas_dbus_error_invalid_args(DBusMessage *message,
* *
* Convenience function to create and return a scan error * Convenience function to create and return a scan error
*/ */
DBusMessage * wpas_dbus_error_scan_error(DBusMessage *message, static DBusMessage * wpas_dbus_error_scan_error(DBusMessage *message,
const char *error) const char *error)
{ {
DBusMessage *reply; return dbus_message_new_error(message,
WPAS_DBUS_ERROR_IFACE_SCAN_ERROR,
reply = dbus_message_new_error(message, error);
WPAS_DBUS_ERROR_IFACE_SCAN_ERROR,
error);
return reply;
} }