Skip to content

Commit

Permalink
logind,sd-event: drop spurious new-lines
Browse files Browse the repository at this point in the history
  • Loading branch information
poettering committed Jun 9, 2015
1 parent ce30c8d commit cde40ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/libsystemd/sd-event/sd-event.c
Expand Up @@ -2384,7 +2384,6 @@ _public_ int sd_event_wait(sd_event *e, uint64_t timeout) {
}

r = -errno;

goto finish;
}

Expand Down
6 changes: 2 additions & 4 deletions src/login/logind-user.c
Expand Up @@ -738,17 +738,15 @@ int user_kill(User *u, int signo) {
return manager_kill_unit(u->manager, u->slice, KILL_ALL, signo, NULL);
}

static bool
elect_display_filter(Session *s) {
static bool elect_display_filter(Session *s) {
/* Return true if the session is a candidate for the user’s ‘primary
* session’ or ‘display’. */
assert(s);

return (s->class == SESSION_USER && !s->stopping);
}

static int
elect_display_compare(Session *s1, Session *s2) {
static int elect_display_compare(Session *s1, Session *s2) {
/* Indexed by SessionType. Lower numbers mean more preferred. */
const int type_ranks[_SESSION_TYPE_MAX] = {
[SESSION_UNSPECIFIED] = 0,
Expand Down

0 comments on commit cde40ac

Please sign in to comment.