aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2017-06-27 15:52:05 +0200
committerRon Yorston <rmy@pobox.com>2017-08-23 10:40:17 +0100
commit94e29a1106435c9bd92d28582fb927c365fbb915 (patch)
treea03af63b283d9bb86198c6d7686570e592edc2a2 /libbb
parent97214a77b23f0fc26cd4c270c80238d1c3568227 (diff)
downloadbusybox-w32-94e29a1106435c9bd92d28582fb927c365fbb915.tar.gz
busybox-w32-94e29a1106435c9bd92d28582fb927c365fbb915.tar.bz2
busybox-w32-94e29a1106435c9bd92d28582fb927c365fbb915.zip
find_pid_by_name: avoid unused variables
This change was forgotten in 28c65da05 (win32: find_pid_by_name: skip argv checks as we do not have that info, 2010-09-15). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Ron Yorston <rmy@pobox.com>
Diffstat (limited to 'libbb')
-rw-r--r--libbb/find_pid_by_name.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libbb/find_pid_by_name.c b/libbb/find_pid_by_name.c
index d4bea8ab5..22afa1ce5 100644
--- a/libbb/find_pid_by_name.c
+++ b/libbb/find_pid_by_name.c
@@ -40,8 +40,10 @@ and therefore comm field contains "exe".
40 40
41static int comm_match(procps_status_t *p, const char *procName) 41static int comm_match(procps_status_t *p, const char *procName)
42{ 42{
43#if !ENABLE_PLATFORM_MINGW32
43 int argv1idx; 44 int argv1idx;
44 const char *argv1; 45 const char *argv1;
46#endif
45 47
46 if (strncmp(p->comm, procName, 15) != 0) 48 if (strncmp(p->comm, procName, 15) != 0)
47 return 0; /* comm does not match */ 49 return 0; /* comm does not match */