projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b690ef1
)
login: group static fields in "struct User"
author
David Herrmann
<dh.herrmann@gmail.com>
Tue, 29 Sep 2015 09:20:52 +0000
(11:20 +0200)
committer
David 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
patch
|
blob
|
history
diff --git
a/src/login/logind-user.h
b/src/login/logind-user.h
index
11d28d2
..
de99cf4
100644
(file)
--- a/
src/login/logind-user.h
+++ b/
src/login/logind-user.h
@@
-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;