Remove an unused variable when calling sigwaitinfo()

This commit is contained in:
Masayuki Ishikawa 2017-03-02 13:41:08 +09:00
parent a05acc1abb
commit 5382806c5a
2 changed files with 2 additions and 4 deletions

View File

@ -116,7 +116,6 @@ int oneshot_main(int argc, char *argv[])
unsigned long usecs = CONFIG_EXAMPLE_ONESHOT_DELAY;
unsigned long secs;
struct oneshot_start_s start;
struct siginfo info;
struct timespec ts;
uint64_t maxus;
sigset_t set;
@ -252,7 +251,7 @@ int oneshot_main(int argc, char *argv[])
/* Wait for the oneshot to fire */
printf("Waiting...\n");
ret = sigwaitinfo(&set, &info);
ret = sigwaitinfo(&set, NULL);
if (ret < 0)
{
fprintf(stderr, "ERROR: sigwaitinfo failed: %d\n",

View File

@ -146,14 +146,13 @@ static struct trv_joystick_s g_trv_joystick;
static int trv_joystick_wait(void)
{
sigset_t set;
struct siginfo value;
int ret;
/* Wait for a signal */
(void)sigemptyset(&set);
(void)sigaddset(&set, CONFIG_GRAPHICS_TRAVELER_JOYSTICK_SIGNO);
ret = sigwaitinfo(&set, &value);
ret = sigwaitinfo(&set, NULL);
if (ret < 0)
{
int errcode = errno;