summaryrefslogtreecommitdiff
path: root/src/fundamental/string-util-fundamental.h
diff options
context:
space:
mode:
authorLuca Boccassi <luca.boccassi@microsoft.com>2021-10-08 13:06:51 +0100
committerLuca Boccassi <luca.boccassi@microsoft.com>2021-10-08 13:07:00 +0100
commit5d8a725b0800ce572bb3308c03e98561251a9284 (patch)
tree09474c318852ed8fbd148cbabd90258bfb7d1d98 /src/fundamental/string-util-fundamental.h
parentd888ef68d11de94c975d3418d600a11e516efdc6 (diff)
downloadsystemd-5d8a725b0800ce572bb3308c03e98561251a9284.tar.gz
fundamental: define size_t and memcpy for sd-boot
Diffstat (limited to 'src/fundamental/string-util-fundamental.h')
-rw-r--r--src/fundamental/string-util-fundamental.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fundamental/string-util-fundamental.h b/src/fundamental/string-util-fundamental.h
index 7455c05492..dc0c1202be 100644
--- a/src/fundamental/string-util-fundamental.h
+++ b/src/fundamental/string-util-fundamental.h
@@ -68,10 +68,10 @@ static inline const sd_char *yes_no(sd_bool b) {
sd_int strverscmp_improved(const sd_char *a, const sd_char *b);
/* Like startswith(), but operates on arbitrary memory blocks */
-static inline void *memory_startswith(const void *p, sd_size_t sz, const sd_char *token) {
+static inline void *memory_startswith(const void *p, size_t sz, const sd_char *token) {
assert(token);
- sd_size_t n = strlen(token) * sizeof(sd_char);
+ size_t n = strlen(token) * sizeof(sd_char);
if (sz < n)
return NULL;