aboutsummaryrefslogtreecommitdiffstats
path: root/com32/libupload
diff options
context:
space:
mode:
authorGene Cumm <gene.cumm@gmail.com>2016-04-23 21:10:41 -0400
committerGene Cumm <gene.cumm@gmail.com>2016-04-23 21:10:41 -0400
commita615768ccafaffc444a808bffc0479ab7dc9efee (patch)
tree2af2b6e040f55e8066c3b659c1824df13f33ff65 /com32/libupload
parent9c18f8b5d6ce73344d0c11643839f0c7fc03b998 (diff)
downloadsyslinux-a615768ccafaffc444a808bffc0479ab7dc9efee.tar.gz
syslinux-a615768ccafaffc444a808bffc0479ab7dc9efee.tar.xz
syslinux-a615768ccafaffc444a808bffc0479ab7dc9efee.zip
libupload: Use new TFTP OK status definition
FTBFS: com32/hdt/hdt-dump.c:227:39: error: ‘TFTP_OK’ undeclared (first use in this function) Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
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 8ca87528..1e0b0702 100644
--- a/com32/libupload/upload_tftp.c
+++ b/com32/libupload/upload_tftp.c
@@ -52,13 +52,13 @@ static int upload_tftp_write(struct upload_backend *be) {
parse_url(&url, url_path);
err = -url_set_ip(&url);
- if (err != TFTP_OK)
+ if (err != TFTP_ERR_OK)
return err;
dprintf("Connecting to %s to send %s\n", url.host, url.path);
err = -tftp_put(&url, 0, &inode, NULL, be->outbuf, be->zbytes);
- if (err != TFTP_OK) {
+ if (err != TFTP_ERR_OK) {
printf("upload_tftp_write: TFTP server returned error %d : %s\n",
err, tftp_string_error_message[err]);
}