summaryrefslogtreecommitdiff
path: root/librt/spawn.c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2017-12-10 19:06:31 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2017-12-10 19:06:31 +0100
commit7c36bcae09d66bbaa35cbb02253ae0556f42677e (patch)
treee5f540b3ff7e6eeb2a6a61be4a0343579aa49703 /librt/spawn.c
parentb15e3a2d34a91d16ff9ab9cc63c492142ac7b17b (diff)
librt: fix gcc warning
Diffstat (limited to 'librt/spawn.c')
-rw-r--r--librt/spawn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/librt/spawn.c b/librt/spawn.c
index a2b8e061b..4171f9bb5 100644
--- a/librt/spawn.c
+++ b/librt/spawn.c
@@ -158,7 +158,7 @@ __spawni(pid_t *pid, const char *file,
sigset_t hset;
sigprocmask (SIG_BLOCK, 0, &hset);
- for (int sig = 1; sig < _NSIG; ++sig) {
+ for (sig = 1; sig < _NSIG; ++sig) {
if ((flags & POSIX_SPAWN_SETSIGDEF)
&& sigismember (&attrp->__sd, sig))
{