]> git.ipfire.org Git - thirdparty/systemd.git/commit
blockdev-util: Remove dependency on string-util.h
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 14 May 2025 13:33:36 +0000 (15:33 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 14 May 2025 14:56:05 +0000 (16:56 +0200)
commitbdcd47a2698154341fbe8bb73e2f66e1a881ae0e
tree06683b3b40024143d8db93c78de8a52999f6c8d4
parent5f3b558b9935dd842dd51202f432a573677263a8
blockdev-util: Remove dependency on string-util.h

Let's insist on a string literal in SYS_BLOCK_PATH_MAX() so that
we don't accidentally allocate VLAs and let's inline strempty() in
xsprintf_sys_block_path() so we don't need to include string-util.h
in blockdev-util.h

We'll remove the actual string-util.h include as part of #37344.
src/shared/blockdev-util.c
src/shared/blockdev-util.h