From 947193d93f6e5d71bfa4138f9b8a03c39d91df36 Mon Sep 17 00:00:00 2001 From: "Matthew N. Dodd" Date: Mon, 7 Apr 2003 12:09:17 +0000 Subject: [PATCH] Use the correct data type and qualifier for signal flag. --- bin/cp/cp.c | 2 +- bin/cp/extern.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/cp/cp.c b/bin/cp/cp.c index 97767291714..5bb9f8cec2e 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 f06c65ef779..d578a1b39d0 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);