examples/i2schar: Fix compile error and warning
Fix compile error due to unnecessary endif. Fix warning of long line.
This commit is contained in:
parent
1b99543e8d
commit
66f957792f
@ -212,7 +212,6 @@ static void parse_args(FAR struct i2schar_state_s *i2schar,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
|
@ -109,9 +109,8 @@ pthread_addr_t i2schar_transmitter(pthread_addr_t arg)
|
|||||||
ret = apb_alloc(&desc);
|
ret = apb_alloc(&desc);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
printf("
|
printf("i2schar_transmitter:"
|
||||||
i2schar_transmitter: ERROR: failed to allocate buffer %d: %d\n",
|
"ERROR: failed to allocate buffer %d: %d\n", i + 1, ret);
|
||||||
i + 1, ret);
|
|
||||||
close(fd);
|
close(fd);
|
||||||
pthread_exit(NULL);
|
pthread_exit(NULL);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user