diff options
author | Leah Neukirchen <leah@vuxu.org> | 2017-08-20 00:49:39 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2017-08-20 00:49:39 +0200 |
commit | 66d549b77f1341914c23e9eb016749809fdfffda (patch) | |
tree | e2e7c2c635116ace768364549530ae0f42917f63 | |
parent | a8c6a88da9a89a7ed67ddb6771408e2db0510107 (diff) | |
download | extrace-66d549b77f1341914c23e9eb016749809fdfffda.tar.gz extrace-66d549b77f1341914c23e9eb016749809fdfffda.tar.xz extrace-66d549b77f1341914c23e9eb016749809fdfffda.zip |
cleanup
-rw-r--r-- | extrace.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/extrace.c b/extrace.c index 531f1e9..4be6767 100644 --- a/extrace.c +++ b/extrace.c @@ -51,6 +51,14 @@ #define _XOPEN_SOURCE 700 +#include <linux/connector.h> +#include <linux/netlink.h> +#include <linux/cn_proc.h> + +#include <sys/socket.h> +#include <sys/types.h> +#include <sys/wait.h> + #include <fcntl.h> #include <limits.h> #include <signal.h> @@ -61,14 +69,6 @@ #include <time.h> #include <unistd.h> -#include <sys/socket.h> -#include <sys/types.h> -#include <sys/wait.h> - -#include <linux/connector.h> -#include <linux/netlink.h> -#include <linux/cn_proc.h> - #define max(x,y) ((y)<(x)?(x):(y)) #define min(x,y) ((y)>(x)?(x):(y)) @@ -347,7 +347,6 @@ handle_msg(struct cn_msg *cn_hdr) fflush(output); } else if (show_exit && ev->what == PROC_EVENT_EXIT) { pid_t pid = ev->event_data.exit.process_pid; - struct timespec now, diff; int i; for (i = 0; i < PID_DB_SIZE; i++) |