strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
cab8646
)
starter: Avoid hiding global variable when checking PID file
author
Tobias Brunner
<tobias@strongswan.org>
Tue, 28 Jan 2020 10:30:23 +0000
(11:30 +0100)
committer
Tobias Brunner
<tobias@strongswan.org>
Tue, 28 Jan 2020 14:29:40 +0000
(15:29 +0100)
src/starter/starter.c
patch
|
blob
|
history
diff --git
a/src/starter/starter.c
b/src/starter/starter.c
index
506fe47
..
8263661
100644
(file)
--- a/
src/starter/starter.c
+++ b/
src/starter/starter.c
@@
-255,14
+255,14
@@
static void fatal_signal_handler(int signal)
abort();
}
abort();
}
-static bool check_pid(char *
pid_
file)
+static bool check_pid(char *file)
{
struct stat stb;
FILE *pidfile;
{
struct stat stb;
FILE *pidfile;
- if (stat(
pid_
file, &stb) == 0)
+ if (stat(file, &stb) == 0)
{
{
- pidfile = fopen(
pid_
file, "r");
+ pidfile = fopen(file, "r");
if (pidfile)
{
char buf[64];
if (pidfile)
{
char buf[64];
@@
-279,8
+279,8
@@
static bool check_pid(char *pid_file)
return TRUE;
}
}
return TRUE;
}
}
- DBG1(DBG_APP, "removing pidfile '%s', process not running",
pid_
file);
- unlink(
pid_
file);
+ DBG1(DBG_APP, "removing pidfile '%s', process not running", file);
+ unlink(file);
}
return FALSE;
}
}
return FALSE;
}