Change the name of the local variable sigset to set to prevent name collisions with the function of the same name

This commit is contained in:
Gregory Nutt
2015-07-31 13:32:10 -06:00
parent 02e90b8c2f
commit 5772813d29
3 changed files with 14 additions and 16 deletions
+5 -5
View File
@@ -1,7 +1,7 @@
/****************************************************************************
* libc/aio/lio_listio.c
*
* Copyright (C) 2014 Gregory Nutt. All rights reserved.
* Copyright (C) 2014-2015 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -247,7 +247,7 @@ static int lio_sigsetup(FAR struct aiocb * const *list, int nent,
{
FAR struct aiocb *aiocbp;
FAR struct lio_sighand_s *sighand;
sigset_t sigset;
sigset_t set;
struct sigaction act;
int status;
int i;
@@ -292,9 +292,9 @@ static int lio_sigsetup(FAR struct aiocb * const *list, int nent,
/* Make sure that SIGPOLL is not blocked */
(void)sigemptyset(&sigset);
(void)sigaddset(&sigset, SIGPOLL);
status = sigprocmask(SIG_UNBLOCK, &sigset, &sighand->oprocmask);
(void)sigemptyset(&set);
(void)sigaddset(&set, SIGPOLL);
status = sigprocmask(SIG_UNBLOCK, &set, &sighand->oprocmask);
if (status != OK)
{
int errcode = get_errno();