From b668c77874c6fed325471bdcf5954979a0d734e2 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 10 Jan 2014 11:23:33 +0100 Subject: sbus: Use constants to make dbus calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This allows us to remove duplicated information, and have the compiler check that when an method name is changed or removed the callers are updated. Reviewed-by: Jakub Hrozek Reviewed-by: Sumit Bose Reviewed-by: Lukáš Slebodník Reviewed-by: Simo Sorce --- src/responder/autofs/autofssrv_dp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/responder/autofs') diff --git a/src/responder/autofs/autofssrv_dp.c b/src/responder/autofs/autofssrv_dp.c index 975692aad..041f0629e 100644 --- a/src/responder/autofs/autofssrv_dp.c +++ b/src/responder/autofs/autofssrv_dp.c @@ -118,8 +118,8 @@ sss_dp_get_autofs_msg(void *pvt) msg = dbus_message_new_method_call(NULL, DP_PATH, - DP_INTERFACE, - DP_METHOD_AUTOFSHANDLER); + DATA_PROVIDER_IFACE, + DATA_PROVIDER_IFACE_AUTOFSHANDLER); if (msg == NULL) { DEBUG(SSSDBG_CRIT_FAILURE, "Out of memory?!\n"); return NULL; -- cgit