All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ondřej Svoboda" <ondrej@svobodasoft.cz>
To: dm-devel@redhat.com
Subject: Re: [PATCH] multipathd: Fix for 'Read environment variables from systemd'
Date: Tue, 10 Dec 2013 02:49:28 +0100	[thread overview]
Message-ID: <52A67328.1010107@svobodasoft.cz> (raw)
In-Reply-To: <52A67167.2060802@svobodasoft.cz>

Never mind, it’s too late for me.

On 10.12.2013 02:41, Ondřej Svoboda wrote:
> The revision 'multipathd: Read environment variables from systemd' 
> introduced a compilation error in multipathd/main.c:
>
> main.c: In function ‘child’:
> main.c:1651:2: error: ‘envp’ undeclared (first use in this function)
>   envp = getenv("LimitNOFILE");
>   ^
>
> This patch fixes it by declaring char *envp for this (second) case.
>
> Signed-off-by: Ondřej Svoboda <ondrej svobodasoft cz>
>
> diff --git a/multipathd/main.c b/multipathd/main.c
> index 7c0e313..2d6aac8 100644
> --- a/multipathd/main.c
> +++ b/multipathd/main.c
> @@ -1609,6 +1609,7 @@ child (void * param)
>      struct multipath * mpp;
>      int i;
>      int rc, pid_rc;
> +    char *envp;
>
>
>      mlockall(MCL_CURRENT | MCL_FUTURE);
>      sem_init(&exit_sem, 0, 0);
>
> -- 
> dm-devel mailing list
> dm-devel@redhat.com
> https://www.redhat.com/mailman/listinfo/dm-devel

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

      reply	other threads:[~2013-12-10  1:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-10  1:41 [PATCH] multipathd: Fix for 'Read environment variables from systemd' Ondřej Svoboda
2013-12-10  1:49 ` Ondřej Svoboda [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52A67328.1010107@svobodasoft.cz \
    --to=ondrej@svobodasoft.cz \
    --cc=dm-devel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.