From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YzqZC-0006QB-2D for barebox@lists.infradead.org; Tue, 02 Jun 2015 18:05:39 +0000 From: Robert Schwebel Date: Tue, 2 Jun 2015 20:04:37 +0200 Message-Id: <1433268277-995-1-git-send-email-r.schwebel@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH] dhcp: add missing define To: barebox@lists.infradead.org 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 --- 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 #include +#define DHCP_DEFAULT_RETRY 20 + static int do_dhcp(int argc, char *argv[]) { int ret, opt; -- 2.1.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox