projects
/
libbear.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c16d168
)
refactored handleSignal
author
Patrik Gornicz
<Gornicz.P@gmail.com>
Thu, 22 Jan 2009 01:32:04 +0000
(20:32 -0500)
committer
Patrik Gornicz
<Gornicz.P@gmail.com>
Thu, 22 Jan 2009 01:32:04 +0000
(20:32 -0500)
src/handleSignal.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/handleSignal.cpp
b/src/handleSignal.cpp
index
fa5a8c4
..
cd1fcec
100644
(file)
--- a/
src/handleSignal.cpp
+++ b/
src/handleSignal.cpp
@@
-23,7
+23,7
@@
/// ***** Private Method Headers *****
-
void sighandler( int s
ig );
+
static void sighandler( int iS
ig );
/// ***** Public Methods *****
@@
-46,10
+46,10
@@
void installSignal()
/// ***** Private Methods *****
// signal handler function
-void sighandler( int
s
ig )
+void sighandler( int
iS
ig )
{
#ifndef __WIN32__
- switch(
s
ig)
+ switch(
iS
ig)
{
case SIGINT:
std::cerr << "SIGINT caught" << std::endl;
@@
-59,6
+59,6
@@
void sighandler( int sig )
}
// normally an abort is better ... but this is just SIGINT
- exit(
s
ig);
+ exit(
iS
ig);
#endif // __WIN32__
}