diff --git a/bin/cp/cp.c b/bin/cp/cp.c index 97767291714f..5bb9f8cec2e6 100644 --- a/bin/cp/cp.c +++ b/bin/cp/cp.c @@ -89,7 +89,7 @@ PATH_T to = { to.p_path, emptystring, "" }; int fflag, iflag, nflag, pflag, vflag; static int Rflag, rflag; -int info; +volatile sig_atomic_t info; static void siginfo (int notused __unused); enum op { FILE_TO_FILE, FILE_TO_DIR, DIR_TO_DNE }; diff --git a/bin/cp/extern.h b/bin/cp/extern.h index f06c65ef779b..d578a1b39d08 100644 --- a/bin/cp/extern.h +++ b/bin/cp/extern.h @@ -42,7 +42,7 @@ typedef struct { extern PATH_T to; extern int fflag, iflag, nflag, pflag, vflag; -extern int info; +extern volatile sig_atomic_t info; __BEGIN_DECLS int copy_fifo(struct stat *, int);