X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Flogin%2Flogind-seat.c;h=3114de84de5811950248486d1a02862f29eb7fb1;hb=3210412576857e26c18bd0d154906bd7444f5529;hp=3f5efdc8ea706f8195b463163f838a5d4d34fd75;hpb=61376f96a98291b5421bfd79a15ca4db50c2a3fe;p=elogind.git diff --git a/src/login/logind-seat.c b/src/login/logind-seat.c index 3f5efdc8e..3114de84d 100644 --- a/src/login/logind-seat.c +++ b/src/login/logind-seat.c @@ -120,9 +120,9 @@ int seat_save(Seat *s) { fprintf(f, "ACTIVE=%s\n" - "ACTIVE_UID=%lu\n", + "ACTIVE_UID="UID_FMT"\n", s->active->id, - (unsigned long) s->active->user->uid); + s->active->user->uid); } if (s->sessions) { @@ -485,7 +485,7 @@ void seat_claim_position(Seat *s, Session *session, unsigned int pos) { if (seat_has_vts(s)) pos = session->vtnr; - if (!GREEDY_REALLOC0_T(s->positions, s->position_count, pos + 1)) + if (!GREEDY_REALLOC0(s->positions, s->position_count, pos + 1)) return; seat_evict_position(s, session);