diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-11-08 18:11:09 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-11-08 18:12:45 +0100 |
commit | 9588bc32096fc8342bfd8b989689717186d7d86e (patch) | |
tree | 774cf93f0544add18f8307714062cc18f97838da /src/login/logind.c | |
parent | f842cd74eacc2960ac849766eb786059317415ee (diff) |
Remove dead code and unexport some calls
"make check-api-unused" informs us about code that is not used anymore
or that is exported but only used internally. Fix these all over the
place.
Diffstat (limited to 'src/login/logind.c')
-rw-r--r-- | src/login/logind.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/login/logind.c b/src/login/logind.c index e334bebdf8..c4227f16b2 100644 --- a/src/login/logind.c +++ b/src/login/logind.c @@ -177,7 +177,7 @@ void manager_free(Manager *m) { free(m); } -int manager_enumerate_devices(Manager *m) { +static int manager_enumerate_devices(Manager *m) { struct udev_list_entry *item = NULL, *first = NULL; struct udev_enumerate *e; int r; @@ -226,7 +226,7 @@ finish: return r; } -int manager_enumerate_buttons(Manager *m) { +static int manager_enumerate_buttons(Manager *m) { struct udev_list_entry *item = NULL, *first = NULL; struct udev_enumerate *e; int r; @@ -284,7 +284,7 @@ finish: return r; } -int manager_enumerate_seats(Manager *m) { +static int manager_enumerate_seats(Manager *m) { _cleanup_closedir_ DIR *d = NULL; struct dirent *de; int r = 0; @@ -357,7 +357,7 @@ static int manager_enumerate_linger_users(Manager *m) { return r; } -int manager_enumerate_users(Manager *m) { +static int manager_enumerate_users(Manager *m) { _cleanup_closedir_ DIR *d = NULL; struct dirent *de; int r, k; @@ -401,7 +401,7 @@ int manager_enumerate_users(Manager *m) { return r; } -int manager_enumerate_sessions(Manager *m) { +static int manager_enumerate_sessions(Manager *m) { _cleanup_closedir_ DIR *d = NULL; struct dirent *de; int r = 0; @@ -449,7 +449,7 @@ int manager_enumerate_sessions(Manager *m) { return r; } -int manager_enumerate_inhibitors(Manager *m) { +static int manager_enumerate_inhibitors(Manager *m) { _cleanup_closedir_ DIR *d = NULL; struct dirent *de; int r = 0; |