mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] tftp return value
@ 2010-04-14  8:06 Jan Weitzel
  2010-04-17 19:14 ` Uwe Kleine-König
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Weitzel @ 2010-04-14  8:06 UTC (permalink / raw)
  To: barebox

tftp returns transfered bytes on success and 1 in error case. Bad for
scripting. Change to 0 on success

Signed-off-by: Jan Weitzel <J.Weitzel@phytec.de>
---
Index: barebox-2010.04.0/net/tftp.c
===================================================================
--- barebox-2010.04.0.orig/net/tftp.c	2010-04-14 09:41:37.489858785
+0200
+++ barebox-2010.04.0/net/tftp.c	2010-04-14 09:43:33.899445811 +0200
@@ -281,8 +281,7 @@
 
 	TftpStart(remotefile);
 
-	rcode = NetLoop();
-	if (rcode < 0) {
+	if (NetLoop() < 0) {
 		rcode = 1;
 		goto out;
 	}


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

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

end of thread, other threads:[~2010-04-17 19:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-14  8:06 [PATCH] tftp return value Jan Weitzel
2010-04-17 19:14 ` Uwe Kleine-König

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