aboutgitcodebugslistschat
path: root/netlink.c
diff options
context:
space:
mode:
authorLaine Stump <laine@redhat.com>2023-02-15 03:24:37 -0500
committerStefano Brivio <sbrivio@redhat.com>2023-02-16 17:32:27 +0100
commitc9af6f92db9f760e0b03a75bf688439e4aeab231 (patch)
tree88807dd9f5aa5b0379d792ac1ec1fc15bf1f4eb3 /netlink.c
parenta1ab1ca2eedbc16139cf03df06c6012b22f1f2cb (diff)
downloadpasst-c9af6f92db9f760e0b03a75bf688439e4aeab231.tar
passt-c9af6f92db9f760e0b03a75bf688439e4aeab231.tar.gz
passt-c9af6f92db9f760e0b03a75bf688439e4aeab231.tar.bz2
passt-c9af6f92db9f760e0b03a75bf688439e4aeab231.tar.lz
passt-c9af6f92db9f760e0b03a75bf688439e4aeab231.tar.xz
passt-c9af6f92db9f760e0b03a75bf688439e4aeab231.tar.zst
passt-c9af6f92db9f760e0b03a75bf688439e4aeab231.zip
convert all remaining err() followed by exit() to die()
This actually leaves us with 0 uses of err(), but someone could want to use it in the future, so we may as well leave it around. Signed-off-by: Laine Stump <laine@redhat.com> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'netlink.c')
-rw-r--r--netlink.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/netlink.c b/netlink.c
index b8fa2a0..8f785ca 100644
--- a/netlink.c
+++ b/netlink.c
@@ -90,8 +90,7 @@ void nl_sock_init(const struct ctx *c, bool ns)
return;
fail:
- err("Failed to get netlink socket");
- exit(EXIT_FAILURE);
+ die("Failed to get netlink socket");
}
/**