[systemd-devel] [PATCH 2/2] logind: remove unused variable

Lennart Poettering lennart at poettering.net
Tue Jan 15 11:52:03 PST 2013


On Fri, 11.01.13 17:06, Michal Sekletar (msekleta at redhat.com) wrote:

Applied both!

> ---
>  src/login/logind-session.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/src/login/logind-session.c b/src/login/logind-session.c
> index b64a5d3..b981e14 100644
> --- a/src/login/logind-session.c
> +++ b/src/login/logind-session.c
> @@ -772,7 +772,6 @@ static int get_process_ctty_atime(pid_t pid, usec_t *atime) {
>  }
>  
>  int session_get_idle_hint(Session *s, dual_timestamp *t) {
> -        _cleanup_free_ char *p = NULL;
>          usec_t atime = 0, n;
>          int r;
>  
> @@ -786,7 +785,7 @@ int session_get_idle_hint(Session *s, dual_timestamp *t) {
>                  return s->idle_hint;
>          }
>  
> -        /* Graphical sessions really should really implement a real
> +        /* Graphical sessions should really implement a real
>           * idle hint logic */
>          if (s->display)
>                  goto dont_know;


Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list