Skip to content

Commit

Permalink
libupload: Use new TFTP OK status definition
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
geneC committed Apr 24, 2016
1 parent 9c18f8b commit a615768
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion com32/hdt/hdt-dump.c
Expand Up @@ -224,7 +224,7 @@ void dump(struct s_hardware *hardware)
/* We close & flush the file to send */
cpio_close(upload);

if ((err = flush_data(upload)) != TFTP_OK) {
if ((err = flush_data(upload)) != TFTP_ERR_OK) {
/* As we manage a tftp connection, let's display the associated error message */
more_printf("Dump failed !\n");
more_printf("TFTP ERROR on : %s:/%s \n", hardware->tftp_ip, filename);
Expand Down
4 changes: 2 additions & 2 deletions com32/libupload/upload_tftp.c
Expand Up @@ -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]);
}
Expand Down

0 comments on commit a615768

Please sign in to comment.