chiark / gitweb /
pam: fix build
authorLennart Poettering <lennart@poettering.net>
Fri, 13 Jan 2012 19:52:45 +0000 (20:52 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 13 Jan 2012 19:52:45 +0000 (20:52 +0100)
src/login/pam-module.c

index 1c3a7437f80c96f3129b18c12c1f87130e78d6e6..46509245fb4a801361a460e63bfa70acec18b992 100644 (file)
@@ -457,9 +457,9 @@ _public_ PAM_EXTERN int pam_sm_open_session(
 
         if (!isempty(display) && vtnr <= 0) {
                 if (isempty(seat))
-                        get_seat_from_display(handle, display, &seat, &vtnr);
+                        get_seat_from_display(display, &seat, &vtnr);
                 else if (streq(seat, "seat0"))
-                        get_seat_from_display(handle, display, NULL, &vtnr);
+                        get_seat_from_display(display, NULL, &vtnr);
         }
 
         type = !isempty(display) ? "x11" :