mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-19 04:28:28 +00:00
apps/examples/pipes: Eliminate some warnings.
This commit is contained in:
parent
42f66e6e3c
commit
1956f66ee6
1 changed files with 7 additions and 3 deletions
|
|
@ -275,17 +275,21 @@ int redirection_test(void)
|
|||
/* Start redirect_reader thread */
|
||||
|
||||
printf("redirection_test: Starting redirect_reader task with fd=%d\n", fd[0]);
|
||||
readerid = task_create("redirect_reader", 50, CONFIG_EXAMPLES_PIPE_STACKSIZE, redirect_reader, argv);
|
||||
readerid = task_create("redirect_reader", 50, CONFIG_EXAMPLES_PIPE_STACKSIZE,
|
||||
redirect_reader, (FAR char * const *)argv);
|
||||
if (readerid < 0)
|
||||
{
|
||||
fprintf(stderr, "redirection_test: Failed to create redirect_writer task: %d\n", errno);
|
||||
fprintf(stderr,
|
||||
"redirection_test: Failed to create redirect_writer task: %d\n",xi
|
||||
errno);
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* Start redirect_writer task */
|
||||
|
||||
printf("redirection_test: Starting redirect_writer task with fd=%d\n", fd[1]);
|
||||
writerid = task_create("redirect_writer", 50, CONFIG_EXAMPLES_PIPE_STACKSIZE, redirect_writer, argv);
|
||||
writerid = task_create("redirect_writer", 50, CONFIG_EXAMPLES_PIPE_STACKSIZE,
|
||||
redirect_writer, (FAR char * const *)argv);
|
||||
if (writerid < 0)
|
||||
{
|
||||
fprintf(stderr, "redirection_test: Failed to create redirect_writer task: %d\n", errno);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue