From 62c604bc0ed3cd6325db91c9d39d6381a376d706 Mon Sep 17 00:00:00 2001 From: "Andrew V. Jones" Date: Wed, 17 Mar 2021 16:07:37 +0000 Subject: [PATCH] Correcting multiple definition of 'global_wipe_status' Signed-off-by: Andrew V. Jones --- src/nwipe.c | 1 + src/nwipe.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nwipe.c b/src/nwipe.c index aa1070f..4c4f40f 100644 --- a/src/nwipe.c +++ b/src/nwipe.c @@ -52,6 +52,7 @@ int terminate_signal; int user_abort; +int global_wipe_status; int main( int argc, char** argv ) { diff --git a/src/nwipe.h b/src/nwipe.h index 8932b72..adb434d 100644 --- a/src/nwipe.h +++ b/src/nwipe.h @@ -74,7 +74,7 @@ void* signal_hand( void* ); extern int errno; /* 0=wipe not yet started, 1=wipe has been started by the user */ -int global_wipe_status; +extern int global_wipe_status; /* Global array to hold log values to print when logging to STDOUT */ /* char **log_lines;