diff options
author | David Tardon <dtardon@redhat.com> | 2022-08-09 14:35:15 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2022-09-13 08:13:27 +0200 |
commit | 995340074e554b4bf4a0fdb0cb7436692c5a4ffd (patch) | |
tree | ca3ee001db3e608ee80478f42fea9c3b409f1b7b /src/resolve/resolved-socket-graveyard.c | |
parent | Merge pull request #23087 from yuwata/udev-watch (diff) | |
download | systemd-995340074e554b4bf4a0fdb0cb7436692c5a4ffd.tar.xz systemd-995340074e554b4bf4a0fdb0cb7436692c5a4ffd.zip |
tree-wide: use ASSERT_PTR more
Diffstat (limited to 'src/resolve/resolved-socket-graveyard.c')
-rw-r--r-- | src/resolve/resolved-socket-graveyard.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/resolve/resolved-socket-graveyard.c b/src/resolve/resolved-socket-graveyard.c index 6d4105bc0a..9605d725ba 100644 --- a/src/resolve/resolved-socket-graveyard.c +++ b/src/resolve/resolved-socket-graveyard.c @@ -70,9 +70,7 @@ void manager_socket_graveyard_clear(Manager *m) { } static int on_io_event(sd_event_source *s, int fd, uint32_t revents, void *userdata) { - SocketGraveyard *g = userdata; - - assert(g); + SocketGraveyard *g = ASSERT_PTR(userdata); /* An IO event happened on the graveyard fd. We don't actually care which event that is, and we don't * read any incoming packet off the socket. We just close the fd, that's enough to not trigger the |