[systemd-devel] [PATCH 2/2] remove unneeded error.h includes

David Herrmann dh.herrmann at gmail.com
Mon Sep 15 08:02:03 PDT 2014


Hi

On Mon, Sep 15, 2014 at 3:29 PM, Emil Renner Berthing <systemd at esmil.dk> wrote:
> These are the only two places where this glibc-specific
> header is included. However none of the definitions in it
> seem to be used, so just remove the includes.

Looks good. I think we used error() in the past, but that's long gone.

Applied!

Thanks
David

> ---
>  src/notify/notify.c | 1 -
>  src/path/path.c     | 1 -
>  2 files changed, 2 deletions(-)
>
> diff --git a/src/notify/notify.c b/src/notify/notify.c
> index 6f1c52e..33933e4 100644
> --- a/src/notify/notify.c
> +++ b/src/notify/notify.c
> @@ -21,7 +21,6 @@
>
>  #include <stdio.h>
>  #include <getopt.h>
> -#include <error.h>
>  #include <errno.h>
>  #include <unistd.h>
>  #include <stdlib.h>
> diff --git a/src/path/path.c b/src/path/path.c
> index 347921a..37f2571 100644
> --- a/src/path/path.c
> +++ b/src/path/path.c
> @@ -21,7 +21,6 @@
>
>  #include <stdio.h>
>  #include <getopt.h>
> -#include <error.h>
>  #include <errno.h>
>  #include <unistd.h>
>  #include <stdlib.h>
> --
> 2.1.0
>
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel


More information about the systemd-devel mailing list