mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Robert Schwebel <r.schwebel@pengutronix.de>
To: barebox@lists.infradead.org
Subject: Re: [PATCH] dhcp: add missing define
Date: Tue, 2 Jun 2015 20:06:44 +0200	[thread overview]
Message-ID: <20150602180644.GU26523@pengutronix.de> (raw)
In-Reply-To: <1433268277-995-1-git-send-email-r.schwebel@pengutronix.de>

Hi,

I think this was somehow missing in 32900eaf7c95e52da33442b24ce91c747e700cff
and this patch should be squashed into the patch above in next.

rsc

On Tue, Jun 02, 2015 at 08:04:37PM +0200, Robert Schwebel wrote:
> Without this, we get
> 
> commands/dhcp.c: In function 'do_dhcp':
> commands/dhcp.c:22:16: error: 'DHCP_DEFAULT_RETRY' undeclared (first use in this function)
>   int retries = DHCP_DEFAULT_RETRY;
>                 ^
> commands/dhcp.c:22:16: note: each undeclared identifier is reported only once for each function it appears in
> scripts/Makefile.build:249: recipe for target 'commands/dhcp.o' failed
> 
> Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
> ---
>  commands/dhcp.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/commands/dhcp.c b/commands/dhcp.c
> index eb98bfc..0358a4c 100644
> --- a/commands/dhcp.c
> +++ b/commands/dhcp.c
> @@ -16,6 +16,8 @@
>  #include <getopt.h>
>  #include <dhcp.h>
>  
> +#define DHCP_DEFAULT_RETRY 20
> +
>  static int do_dhcp(int argc, char *argv[])
>  {
>  	int ret, opt;
> -- 
> 2.1.4



-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2015-06-02 18:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-02 18:04 Robert Schwebel
2015-06-02 18:06 ` Robert Schwebel [this message]
2015-06-03  7:15   ` Sascha Hauer

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=20150602180644.GU26523@pengutronix.de \
    --to=r.schwebel@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox