mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
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
This commit is contained in:
@@ -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++) { \
|
||||
|
||||
Reference in New Issue
Block a user