login: group static fields in "struct User"
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 29 Sep 2015 09:20:52 +0000 (11:20 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Mon, 16 Nov 2015 14:34:41 +0000 (15:34 +0100)
Make sure to put static fields together in "struct User". This makes it
easier to figure out the lifetime of each field.

src/login/logind-user.h

index 11d28d2..de99cf4 100644 (file)
@@ -39,16 +39,13 @@ typedef enum UserState {
 
 struct User {
         Manager *manager;
-
         uid_t uid;
         gid_t gid;
         char *name;
-
         char *state_file;
         char *runtime_path;
-
-        char *service;
         char *slice;
+        char *service;
 
         char *service_job;
         char *slice_job;