const char *username, *id, *object_path, *runtime_path, *service = NULL, *tty = NULL, *display = NULL, *remote_user = NULL, *remote_host = NULL, *seat = NULL, *type = NULL, *class = NULL, *class_pam = NULL, *cvtnr = NULL;
uint32_t uid, pid;
int session_fd = -1;
- bool remote, existing;
+ bool remote;
+ unsigned existing;
uint32_t vtnr = 0;
int r;
!streq(remote_host, "localhost") &&
!streq(remote_host, "localhost.localdomain");
- /* Talk to logind over the message bug */
-
+ /* Talk to logind over the message bus */
r = sd_bus_open_system(&bus);
if (r < 0) {
pam_syslog(handle, LOG_ERR, "Failed to connect to system bus: %s", strerror(-r));