diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2022-08-12 13:54:49 +0200 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2023-01-08 16:31:15 +0100 |
commit | d80463ea2fb1445a66cfb9d06854162ab385ec66 (patch) | |
tree | d5ab7fb1d0679da00df6415a9c766a643764df6b /src/basic/stdio-util.h | |
parent | 3952290619614cc0f6d9fdabb4f1048a481fb6aa (diff) | |
download | systemd-d80463ea2fb1445a66cfb9d06854162ab385ec66.tar.gz |
basic: Drop memory-util.h include from stdio-util.h
We want to include stdio-util.h in log.h in a future commit. To avoid
circular includes, we need to drop the memory-util.h include from
stdio-util.h
Diffstat (limited to 'src/basic/stdio-util.h')
-rw-r--r-- | src/basic/stdio-util.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/basic/stdio-util.h b/src/basic/stdio-util.h index a29170e203..4e93ac90c9 100644 --- a/src/basic/stdio-util.h +++ b/src/basic/stdio-util.h @@ -7,7 +7,6 @@ #include <sys/types.h> #include "macro.h" -#include "memory-util.h" _printf_(3, 4) static inline char *snprintf_ok(char *buf, size_t len, const char *format, ...) { @@ -32,7 +31,7 @@ do { \ size_t _i, _k; \ /* See https://github.com/google/sanitizers/issues/992 */ \ if (HAS_FEATURE_MEMORY_SANITIZER) \ - zero(_argtypes); \ + memset(_argtypes, 0, sizeof(_argtypes)); \ _k = parse_printf_format((format), ELEMENTSOF(_argtypes), _argtypes); \ assert(_k < ELEMENTSOF(_argtypes)); \ for (_i = 0; _i < _k; _i++) { \ |