[Spice-devel] [vdagent-linux v1 1/2] systemd-login: change template string for later usage
Pavel Grunt
pgrunt at redhat.com
Thu Jun 2 17:27:40 UTC 2016
Hi,
imo would be better to squash it to the next patch.
Thanks,
Pavel
On Fri, 2016-05-27 at 11:42 +0200, Victor Toso wrote:
> Removing '' will make this define usable in next patch
> ---
> src/systemd-login.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/src/systemd-login.c b/src/systemd-login.c
> index fa59348..730547a 100644
> --- a/src/systemd-login.c
> +++ b/src/systemd-login.c
> @@ -39,7 +39,7 @@ struct session_info {
> };
>
> #define LOGIND_SESSION_INTERFACE "org.freedesktop.login1.Session"
> -#define LOGIND_SESSION_OBJ_TEMPLATE "'/org/freedesktop/login1/session/_3%s'"
> +#define LOGIND_SESSION_OBJ_TEMPLATE "/org/freedesktop/login1/session/_3%s"
>
> #define SESSION_SIGNAL_LOCK "Lock"
> #define SESSION_SIGNAL_UNLOCK "Unlock"
> @@ -91,8 +91,8 @@ static void si_dbus_match_rule_update(struct session_info
> *si)
> si_dbus_match_remove(si);
>
> si->dbus.match_session_signals =
> - g_strdup_printf ("type='signal',interface='%s',path="
> - LOGIND_SESSION_OBJ_TEMPLATE,
> + g_strdup_printf ("type='signal',interface='%s',path='"
> + LOGIND_SESSION_OBJ_TEMPLATE"'",
> LOGIND_SESSION_INTERFACE,
> si->session);
> if (si->verbose)
More information about the Spice-devel
mailing list