aboutsummaryrefslogtreecommitdiffstats
path: root/com32/libupload
diff options
context:
space:
mode:
authorErwan Velu <erwanaliasr1@gmail.com>2011-04-20 20:12:24 +0200
committerErwan Velu <erwanaliasr1@gmail.com>2011-04-20 20:12:24 +0200
commit079618ded3af27e3d428cb387289ef6f666ccf38 (patch)
tree1465f51b32cfd00782a0308c72b3ac0e7ba19a78 /com32/libupload
parente8d9cdc3848d0a3f8377ed5c161b95566a75b9de (diff)
downloadsyslinux-079618ded3af27e3d428cb387289ef6f666ccf38.tar.gz
syslinux-079618ded3af27e3d428cb387289ef6f666ccf38.tar.xz
syslinux-079618ded3af27e3d428cb387289ef6f666ccf38.zip
libupload: Fixing tftp return value
The default return value for the tftp mode. This made the tftp to return error even if the upload was succesful.
Diffstat (limited to 'com32/libupload')
-rw-r--r--com32/libupload/upload_tftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/com32/libupload/upload_tftp.c b/com32/libupload/upload_tftp.c
index 8c65c9bd..5e73c1c5 100644
--- a/com32/libupload/upload_tftp.c
+++ b/com32/libupload/upload_tftp.c
@@ -138,7 +138,7 @@ static int upload_tftp_write(struct upload_backend *be)
struct tftp_state tftp;
char buffer[512+4+6];
int nlen;
- int err=0;
+ int err=TFTP_OK;
const union syslinux_derivative_info *sdi =
syslinux_derivative_info();
const char *data = be->outbuf;
@@ -193,7 +193,7 @@ static int upload_tftp_write(struct upload_backend *be)
return err;
} while (chunk == 512);
- return 0;
+ return TFTP_OK;
}
struct upload_backend upload_tftp = {