diff options
| author | Steve Langasek <steve.langasek@canonical.com> | 2013-09-20 18:03:50 +0000 |
|---|---|---|
| committer | Steve Langasek <steve.langasek@canonical.com> | 2013-09-20 18:03:50 +0000 |
| commit | c43e3c7c0ec34b02fbf91d85dfdf0982fc8aacdc (patch) | |
| tree | 8bbd2bd357cd7b0774b343fc89a96da1cbf065e5 /netboot.c | |
| parent | 990ce02ddd9bb05ba2a375a56e5b66043cc002cd (diff) | |
| download | efi-boot-shim-c43e3c7c0ec34b02fbf91d85dfdf0982fc8aacdc.tar.gz efi-boot-shim-c43e3c7c0ec34b02fbf91d85dfdf0982fc8aacdc.zip | |
Fix remaining compiler warnings in netboot.c.
Diffstat (limited to 'netboot.c')
| -rw-r--r-- | netboot.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -53,7 +53,7 @@ static inline unsigned short int __swap16(unsigned short int x) static EFI_PXE_BASE_CODE *pxe; static EFI_IP_ADDRESS tftp_addr; -static char *full_path; +static UINT8 *full_path; typedef struct { @@ -111,7 +111,7 @@ try_again: for (i=0; i < (bs / sizeof(EFI_HANDLE)); i++) { status = uefi_call_wrapper(BS->OpenProtocol, 6, hbuf[i], &pxe_base_code_protocol, - &pxe, image_handle, NULL, + (void **)&pxe, image_handle, NULL, EFI_OPEN_PROTOCOL_GET_PROTOCOL); if (status != EFI_SUCCESS) { @@ -261,9 +261,9 @@ static BOOLEAN extract_tftp_info(char *url) return FALSE; memset(full_path, 0, strlen((UINT8 *)end)+strlen((UINT8 *)template)); memcpy(full_path, end, strlen((UINT8 *)end)); - end = strrchr(full_path, '/'); + end = strrchr((char *)full_path, '/'); if (!end) - end = full_path; + end = (char *)full_path; memcpy(end, template, strlen((UINT8 *)template)); return TRUE; @@ -297,7 +297,7 @@ static EFI_STATUS parseDhcp4() memcpy(tmp, template, 12); tmp[13] = '\0'; - full_path = tmp; + full_path = (UINT8 *)tmp; /* Note we don't capture the filename option here because we know its shim.efi * We instead assume the filename at the end of the path is going to be grubx64.efi |
