diff options
author | Simon Glass <sjg@chromium.org> | 2020-02-03 07:36:00 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-02-05 19:33:46 -0700 |
commit | 1ea1c7d80f9dd7a4827cddf25fba71d0034510e4 (patch) | |
tree | 40c925bf3ac2a36d66c31997698ad51647f8ab61 /include | |
parent | 1f6510c4cf92b6056c333c9e0316c5bdbe061f1a (diff) | |
download | u-boot-1ea1c7d80f9dd7a4827cddf25fba71d0034510e4.tar.gz u-boot-1ea1c7d80f9dd7a4827cddf25fba71d0034510e4.tar.xz u-boot-1ea1c7d80f9dd7a4827cddf25fba71d0034510e4.zip |
string: Allow arch override of strndup() also
At present architectures can override strdup() but not strndup(). Use
the same option for both.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/string.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/string.h b/include/linux/string.h index 5d63be4ce5..bb1d5ab07e 100644 --- a/include/linux/string.h +++ b/include/linux/string.h @@ -93,8 +93,8 @@ size_t strcspn(const char *s, const char *reject); #ifndef __HAVE_ARCH_STRDUP extern char * strdup(const char *); -#endif extern char * strndup(const char *, size_t); +#endif #ifndef __HAVE_ARCH_STRSWAB extern char * strswab(const char *); #endif |