mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] dhcp: add missing define
@ 2015-06-02 18:04 Robert Schwebel
  2015-06-02 18:06 ` Robert Schwebel
  0 siblings, 1 reply; 3+ messages in thread
From: Robert Schwebel @ 2015-06-02 18:04 UTC (permalink / raw)
  To: barebox

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


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-06-03  7:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-02 18:04 [PATCH] dhcp: add missing define Robert Schwebel
2015-06-02 18:06 ` Robert Schwebel
2015-06-03  7:15   ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox