summaryrefslogtreecommitdiff
path: root/httpboot.c
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2021-03-09 11:54:58 -0500
committerPeter Jones <pjones@redhat.com>2021-03-10 15:54:20 -0500
commit766aac4d5cfbe76026be5ce718b0883ee211f323 (patch)
tree56b15cac9a128b4285d58bc1e2a4b12cff5ed881 /httpboot.c
parent78809820b5a3f79a0bfbec00e630e40011acf4ec (diff)
downloadefi-boot-shim-766aac4d5cfbe76026be5ce718b0883ee211f323.tar.gz
efi-boot-shim-766aac4d5cfbe76026be5ce718b0883ee211f323.zip
Consolidate most of our standard lib functions to lib
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'httpboot.c')
-rw-r--r--httpboot.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/httpboot.c b/httpboot.c
index fe08f3f7..93d88931 100644
--- a/httpboot.c
+++ b/httpboot.c
@@ -130,7 +130,7 @@ find_httpboot (EFI_HANDLE device)
/* Save the current URI */
UriNode = (URI_DEVICE_PATH *)Node;
- uri_size = strlena(UriNode->Uri);
+ uri_size = strlen(UriNode->Uri);
uri = AllocatePool(uri_size + 1);
if (!uri) {
perror(L"Failed to allocate uri\n");
@@ -156,10 +156,10 @@ generate_next_uri (CONST CHAR8 *current_uri, CONST CHAR8 *next_loader,
UINTN path_len = 0;
UINTN count = 0;
- if (strncmpa(current_uri, (CHAR8 *)"http://", 7) == 0) {
+ if (strncmp(current_uri, (CHAR8 *)"http://", 7) == 0) {
ptr = current_uri + 7;
count += 7;
- } else if (strncmpa(current_uri, (CHAR8 *)"https://", 8) == 0) {
+ } else if (strncmp(current_uri, (CHAR8 *)"https://", 8) == 0) {
ptr = current_uri + 8;
count += 8;
} else {
@@ -167,7 +167,7 @@ generate_next_uri (CONST CHAR8 *current_uri, CONST CHAR8 *next_loader,
}
/* Extract the path */
- next_len = strlena(next_loader);
+ next_len = strlen(next_loader);
while (*ptr != '\0') {
count++;
if (*ptr == '/')
@@ -192,9 +192,9 @@ extract_hostname (CONST CHAR8 *url, CHAR8 **hostname)
CONST CHAR8 *ptr, *start;
UINTN host_len = 0;
- if (strncmpa(url, (CHAR8 *)"http://", 7) == 0)
+ if (strncmp(url, (CHAR8 *)"http://", 7) == 0)
start = url + 7;
- else if (strncmpa(url, (CHAR8 *)"https://", 8) == 0)
+ else if (strncmp(url, (CHAR8 *)"https://", 8) == 0)
start = url + 8;
else
return EFI_INVALID_PARAMETER;
@@ -571,7 +571,7 @@ receive_http_response(EFI_HTTP_PROTOCOL *http, VOID **buffer, UINT64 *buf_size)
/* Check the length of the file */
for (i = 0; i < rx_message.HeaderCount; i++) {
- if (!strcmpa(rx_message.Headers[i].FieldName, (CHAR8 *)"Content-Length")) {
+ if (!strcmp(rx_message.Headers[i].FieldName, (CHAR8 *)"Content-Length")) {
*buf_size = ascii_to_int(rx_message.Headers[i].FieldValue);
}
}