summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2019-07-14 17:28:49 +0200
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2019-07-16 22:17:22 +0000
commit317068b8b6b15ad38f7aa1019310e41764c80e5b (patch)
treeaff1250e1e834310ba23ba7130e21eab87950997 /include
parentade317a281652354cb3d86d40a8c012b32f28497 (diff)
downloadu-boot-317068b8b6b15ad38f7aa1019310e41764c80e5b.tar.gz
u-boot-317068b8b6b15ad38f7aa1019310e41764c80e5b.tar.xz
u-boot-317068b8b6b15ad38f7aa1019310e41764c80e5b.zip
efi_loader: support unaligned u16 strings
Allow unaligned u16 strings as arguments to u16_strdup() and u16_strlen(). Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'include')
-rw-r--r--include/charset.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/charset.h b/include/charset.h
index 4f7ae8fafd..020f8a90df 100644
--- a/include/charset.h
+++ b/include/charset.h
@@ -178,7 +178,7 @@ s32 utf_to_upper(const s32 code);
* ReturnValue: number of non-zero words.
* This is not the number of utf-16 letters!
*/
-size_t u16_strlen(const u16 *in);
+size_t u16_strlen(const void *in);
/**
* u16_strlen - count non-zero words
@@ -214,7 +214,7 @@ u16 *u16_strcpy(u16 *dest, const u16 *src);
* @src: source buffer (null terminated)
* Return: allocated new buffer on success, NULL on failure
*/
-u16 *u16_strdup(const u16 *src);
+u16 *u16_strdup(const void *src);
/**
* utf16_to_utf8() - Convert an utf16 string to utf8