]> git.ipfire.org Git - thirdparty/systemd.git/commit
basic: Make snprintf_ok() a static inline function
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 12 Aug 2022 11:17:24 +0000 (13:17 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 8 Jan 2023 15:31:15 +0000 (16:31 +0100)
commit3952290619614cc0f6d9fdabb4f1048a481fb6aa
treef2bb972674b476c7fc55e8daefc2287ecb60ef4a
parent4f79f545b3c46c358666c9f5f2b384fe50aac4b4
basic: Make snprintf_ok() a static inline function

This allows passing pre-allocated buffers via compound initializers
to snprint_ok(). If snprintf_ok() is a macro, the compound initializer
block will be scoped to the macro block, if snprint_ok() is a function,
the compound initializer block will be scoped to the block from which
snprintf_ok() is called.
src/basic/stdio-util.h