summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Ball <nullspoon@oper.io>2023-06-09 17:08:58 -0600
committerAaron Ball <nullspoon@oper.io>2023-06-09 17:13:21 -0600
commit40e681a78aae2e984fd4901ae6d8c0034b7a632b (patch)
tree4239952406b502500a25b158874c190cb6777ad1
parent53f56643a50c32746d95b730a839f2d7bdf36359 (diff)
downloadfd-enum-40e681a78aae2e984fd4901ae6d8c0034b7a632b.tar.gz
fd-enum-40e681a78aae2e984fd4901ae6d8c0034b7a632b.tar.xz
Switch config struct to use pid_t for pid
Technically a pid is a signed int, so the previous code was fine. But using pid_t follows better practice.
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 487809e..c4b1661 100644
--- a/main.c
+++ b/main.c
@@ -23,7 +23,7 @@
#include <sys/stat.h>
struct config {
- int pid;
+ pid_t pid;
char dead;
char live;
char sockets;

Generated by cgit