Skip to content

Commit

Permalink
examples/i2schar: Fix compile error and warning
Browse files Browse the repository at this point in the history
Fix compile error due to unnecessary endif.
Fix warning of long line.
  • Loading branch information
tmedicci authored and xiaoxiang781216 committed Sep 30, 2022
1 parent 1b99543 commit 66f9577
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion examples/i2schar/i2schar_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ static void parse_args(FAR struct i2schar_state_s *i2schar,
}
}
}
#endif

/****************************************************************************
* Public Functions
Expand Down
5 changes: 2 additions & 3 deletions examples/i2schar/i2schar_transmitter.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,8 @@ pthread_addr_t i2schar_transmitter(pthread_addr_t arg)
ret = apb_alloc(&desc);
if (ret < 0)
{
printf("
i2schar_transmitter: ERROR: failed to allocate buffer %d: %d\n",
i + 1, ret);
printf("i2schar_transmitter:"
"ERROR: failed to allocate buffer %d: %d\n", i + 1, ret);
close(fd);
pthread_exit(NULL);
}
Expand Down

0 comments on commit 66f9577

Please sign in to comment.