[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-ddrescue] [PATCH 3/5] io: Add missing prototype
From: |
Rosen Penev |
Subject: |
[Bug-ddrescue] [PATCH 3/5] io: Add missing prototype |
Date: |
Fri, 2 Aug 2019 14:52:34 -0700 |
Found with -Wmissing-prototypes
Signed-off-by: Rosen Penev <address@hidden>
---
io.cc | 1 +
1 file changed, 1 insertion(+)
diff --git a/io.cc b/io.cc
index f8fbdbf..fc1f1d0 100644
--- a/io.cc
+++ b/io.cc
@@ -34,6 +34,7 @@ namespace {
int volatile signum_ = 0; // user pressed Ctrl-C or similar
+extern "C" void sighandler( int signum );
extern "C" void sighandler( int signum )
{ if( signum_ == 0 && signum > 0 ) signum_ = signum; }
--
2.17.1
[Bug-ddrescue] [PATCH 2/5] treewide: Replace old style cast with static_cast, Rosen Penev, 2019/08/02
[Bug-ddrescue] [PATCH 4/5] command_mode: Add missing cctype header, Rosen Penev, 2019/08/02
[Bug-ddrescue] [PATCH 5/5] mapfile: Add several missing fclose calls, Rosen Penev, 2019/08/02