diff options
author | Rolf Offermanns <rof@sysgo.com> | 2020-06-09 10:01:00 +0200 |
---|---|---|
committer | Rolf Offermanns <rof@sysgo.com> | 2020-06-09 10:01:00 +0200 |
commit | 8069df82512455e7a1d2c7d48c55f1e6ed0220c8 (patch) | |
tree | 5b595acf75bf1fe7ef0cd89dbf66daaf919e7ca4 /src/whatfiles.h | |
parent | f3a4c0dc10086d49a5d5878439d8f922887f13f6 (diff) |
Only define global variables once. Fixes #1.
Diffstat (limited to 'src/whatfiles.h')
-rw-r--r-- | src/whatfiles.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/whatfiles.h b/src/whatfiles.h index 0a83f06..681638c 100644 --- a/src/whatfiles.h +++ b/src/whatfiles.h @@ -7,8 +7,8 @@ #include "hashmap.h" -int Debug; -FILE *Handle; +extern int Debug; +extern FILE *Handle; #define MODE_LEN 32 #define OUTPUT(...) fprintf(Handle, __VA_ARGS__) @@ -23,10 +23,12 @@ FILE *Handle; exit(err); \ } -struct { +typedef struct { pid_t pid; unsigned long long syscall; -} LastSyscall; +} LastSyscall_t; + +extern LastSyscall_t LastSyscall; // utilities.c void build_output( |