aboutgitcodebugslistschat
path: root/util.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-03-25 12:28:41 +0100
committerStefano Brivio <sbrivio@redhat.com>2022-03-29 15:35:38 +0200
commit3e4c2d10985027775683255e5d5fef5149ef8e0b (patch)
treee8b76c8875960a72b0fa6b0918eb7f742c51a4b9 /util.c
parent415ccf6116c496aab173ee9548089fe69ccf8f5f (diff)
downloadpasst-3e4c2d10985027775683255e5d5fef5149ef8e0b.tar
passt-3e4c2d10985027775683255e5d5fef5149ef8e0b.tar.gz
passt-3e4c2d10985027775683255e5d5fef5149ef8e0b.tar.bz2
passt-3e4c2d10985027775683255e5d5fef5149ef8e0b.tar.lz
passt-3e4c2d10985027775683255e5d5fef5149ef8e0b.tar.xz
passt-3e4c2d10985027775683255e5d5fef5149ef8e0b.tar.zst
passt-3e4c2d10985027775683255e5d5fef5149ef8e0b.zip
util: Fix function declaration style of write_pidfile()
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'util.c')
-rw-r--r--util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util.c b/util.c
index ff7d97b..0adc6b9 100644
--- a/util.c
+++ b/util.c
@@ -544,7 +544,8 @@ int ns_enter(struct ctx *c)
* @fd: Open PID file descriptor, closed on exit, -1 to skip writing it
* @pid: PID value to write
*/
-void write_pidfile(int fd, pid_t pid) {
+void write_pidfile(int fd, pid_t pid)
+{
char pid_buf[12];
int n;