From: Mantas Mikulėnas Date: Wed, 8 Jan 2014 12:08:33 +0000 (+0200) Subject: bus: use existing macros from def.h X-Git-Tag: submit/kdbus-integration/20140207.094352~158 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=06150d9039296a6c37aa300463e9bd0c7f296542;p=platform%2Fupstream%2Fsystemd.git bus: use existing macros from def.h --- diff --git a/src/login/pam-module.c b/src/login/pam-module.c index c67e677..e76fef8 100644 --- a/src/login/pam-module.c +++ b/src/login/pam-module.c @@ -173,7 +173,7 @@ static int export_legacy_dbus_address( _cleanup_free_ char *s = NULL; int r; - if (asprintf(&s, "kernel:path=/dev/kdbus/%lu-user/bus;unix:path=%s/bus", + if (asprintf(&s, KERNEL_USER_BUS_FMT ";" UNIX_USER_BUS_FMT, (unsigned long) uid, runtime) < 0) { pam_syslog(handle, LOG_ERR, "Failed to set bus variable."); return PAM_BUF_ERR;