The variables around the bootfile were inconsistent and used CamelCase.
Update them to make the code more readable.
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Acked-by: Simon Glass <sjg@chromium.org>
saved_timeout_msecs = TftpRRQTimeoutMSecs;
saved_timeout_count = TftpRRQTimeoutCountMax;
saved_netretry = strdup(getenv("netretry"));
saved_timeout_msecs = TftpRRQTimeoutMSecs;
saved_timeout_count = TftpRRQTimeoutCountMax;
saved_netretry = strdup(getenv("netretry"));
- saved_bootfile = strdup(BootFile);
+ saved_bootfile = strdup(net_boot_file_name);
/* set timeouts for auto-update */
TftpRRQTimeoutMSecs = msec_max;
/* set timeouts for auto-update */
TftpRRQTimeoutMSecs = msec_max;
/* download the update file */
load_addr = addr;
/* download the update file */
load_addr = addr;
- copy_filename(BootFile, filename, sizeof(BootFile));
+ copy_filename(net_boot_file_name, filename, sizeof(net_boot_file_name));
size = NetLoop(TFTPGET);
if (size < 0)
size = NetLoop(TFTPGET);
if (size < 0)
free(saved_netretry);
if (saved_bootfile != NULL) {
free(saved_netretry);
if (saved_bootfile != NULL) {
- copy_filename(BootFile, saved_bootfile, sizeof(BootFile));
+ copy_filename(net_boot_file_name, saved_bootfile,
+ sizeof(net_boot_file_name));
case BOOTME_DOWNLOAD:
if (last_state != BOOTME_INIT)
case BOOTME_DOWNLOAD:
if (last_state != BOOTME_INIT)
- NetBootFileXferSize += len - 4;
+ net_boot_file_size += len - 4;
/* fallthru */
case BOOTME_DEBUG:
if (last_state == BOOTME_INIT ||
/* fallthru */
case BOOTME_DEBUG:
if (last_state == BOOTME_INIT ||