summaryrefslogtreecommitdiffstats
path: root/src/test/test-mempress.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2025-01-16 07:48:21 +0100
committerGitHub <noreply@github.com>2025-01-16 07:48:21 +0100
commit30adccf3d4c298e0b5f8cee19bab1d70c8726b2d (patch)
tree35e72bec00106daf8d55876ea68810face263ec2 /src/test/test-mempress.c
parentpid1: add GracefulOptions= setting to .mount units (#36023) (diff)
parentmeson: enable -Wzero-as-null-pointer-constant (diff)
downloadsystemd-30adccf3d4c298e0b5f8cee19bab1d70c8726b2d.tar.xz
systemd-30adccf3d4c298e0b5f8cee19bab1d70c8726b2d.zip
meson: enable -Wzero-as-null-pointer-constant (#36028)
Support for C added in gcc 15: https://github.com/gcc-mirror/gcc/commit/236c0829ee21a179c81b83f0d7f112ca23c47a4d
Diffstat (limited to 'src/test/test-mempress.c')
-rw-r--r--src/test/test-mempress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-mempress.c b/src/test/test-mempress.c
index 44f1f4cf5f..dfbd63e601 100644
--- a/src/test/test-mempress.c
+++ b/src/test/test-mempress.c
@@ -43,7 +43,7 @@ static void *fake_pressure_thread(void *p) {
ASSERT_STREQ(buf, "hello");
assert_se(write(cfd, &(const char) { 'z' }, 1) == 1);
- return 0;
+ return NULL;
}
static int fake_pressure_callback(sd_event_source *s, void *userdata) {