]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
login: port tables over to use TABLE_UID/TABLE_PID 14080/head
authorLennart Poettering <lennart@poettering.net>
Wed, 7 Aug 2019 12:50:01 +0000 (14:50 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 19 Nov 2019 11:11:06 +0000 (12:11 +0100)
src/login/inhibit.c
src/login/loginctl.c

index 72d455e3e45703bf055421c739d9098425ffe45e..e2e1e03605bcd4655047f6673fe5004bbc8e662c 100644 (file)
@@ -114,9 +114,9 @@ static int print_inhibitors(sd_bus *bus) {
 
                 r = table_add_many(table,
                                    TABLE_STRING, who,
-                                   TABLE_UINT32, uid,
+                                   TABLE_UID, (uid_t) uid,
                                    TABLE_STRING, strna(u),
-                                   TABLE_UINT32, pid,
+                                   TABLE_PID, (pid_t) pid,
                                    TABLE_STRING, strna(comm),
                                    TABLE_STRING, what,
                                    TABLE_STRING, why,
index 33c96dc858a84a9a515675d39e19f3219145bfe7..61f619de9cc5da7d7a8e428d94573719f1ce495e 100644 (file)
@@ -184,7 +184,7 @@ static int list_sessions(int argc, char *argv[], void *userdata) {
 
                 r = table_add_many(table,
                                    TABLE_STRING, id,
-                                   TABLE_UINT32, uid,
+                                   TABLE_UID, (uid_t) uid,
                                    TABLE_STRING, user,
                                    TABLE_STRING, seat,
                                    TABLE_STRING, strna(tty));
@@ -243,7 +243,7 @@ static int list_users(int argc, char *argv[], void *userdata) {
                         break;
 
                 r = table_add_many(table,
-                                   TABLE_UINT32, uid,
+                                   TABLE_UID, (uid_t) uid,
                                    TABLE_STRING, user);
                 if (r < 0)
                         return log_error_errno(r, "Failed to add row to table: %m");