From 824c1e4d7e0ab9da7ad3f16f9c2e37bce7858132 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Fri, 12 Feb 2010 10:25:11 -0500 Subject: Make attr_type an integer Previously it was a string being passed and converted into an integer. It will be more efficient this way (and simpler for other implementers) --- server/responder/common/responder_dp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server/responder') diff --git a/server/responder/common/responder_dp.c b/server/responder/common/responder_dp.c index 9d54558f..782befb1 100644 --- a/server/responder/common/responder_dp.c +++ b/server/responder/common/responder_dp.c @@ -418,7 +418,7 @@ static int sss_dp_send_acct_req_create(struct resp_ctx *rctx, dbus_bool_t dbret; struct sss_dp_callback *cb; struct sss_dp_req *sdp_req; - const char *attrs = "core"; + uint32_t attrs = BE_ATTR_CORE; struct be_conn *be_conn; int ret; @@ -444,12 +444,12 @@ static int sss_dp_send_acct_req_create(struct resp_ctx *rctx, return ENOMEM; } - DEBUG(4, ("Sending request for [%s][%u][%s][%s]\n", + DEBUG(4, ("Sending request for [%s][%u][%d][%s]\n", domain, be_type, attrs, filter)); dbret = dbus_message_append_args(msg, DBUS_TYPE_UINT32, &be_type, - DBUS_TYPE_STRING, &attrs, + DBUS_TYPE_UINT32, &attrs, DBUS_TYPE_STRING, &filter, DBUS_TYPE_INVALID); if (!dbret) { -- cgit