Skip to content

Commit 922f993

Browse files
zhangyuan21pkarashchenko
authored andcommitted
apps: add <assert.h> header file
Signed-off-by: zhangyuan21 <[email protected]>
1 parent b67b561 commit 922f993

38 files changed

+118
-73
lines changed

system/nxplayer/nxplayer_common.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@
2424

2525
#include <sys/types.h>
2626

27+
#include <assert.h>
28+
#include <debug.h>
2729
#include <stdint.h>
2830
#include <stdio.h>
2931
#include <stdlib.h>
30-
#include <debug.h>
3132
#include <unistd.h>
3233

3334
#include <nuttx/audio/audio.h>

testing/ostest/aio.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,15 @@
2424

2525
#include <nuttx/config.h>
2626

27+
#include <aio.h>
28+
#include <assert.h>
29+
#include <errno.h>
30+
#include <fcntl.h>
31+
#include <signal.h>
2732
#include <stdbool.h>
2833
#include <stdio.h>
29-
#include <unistd.h>
30-
#include <signal.h>
3134
#include <string.h>
32-
#include <fcntl.h>
33-
#include <aio.h>
34-
#include <errno.h>
35+
#include <unistd.h>
3536

3637
#include "ostest.h"
3738

testing/ostest/barrier.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@
2222
* Included Files
2323
****************************************************************************/
2424

25+
#include <assert.h>
26+
#include <pthread.h>
2527
#include <stdio.h>
2628
#include <unistd.h>
27-
#include <pthread.h>
2829

2930
#include "ostest.h"
3031

testing/ostest/cancel.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
#include <nuttx/config.h>
2626

27+
#include <assert.h>
2728
#include <errno.h>
2829
#include <fcntl.h>
2930
#include <mqueue.h>

testing/ostest/cond.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
* Included Files
2323
****************************************************************************/
2424

25+
#include <assert.h>
2526
#include <pthread.h>
2627
#include <sched.h>
2728
#include <stdio.h>

testing/ostest/dev_null.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,12 @@
2323
****************************************************************************/
2424

2525
#include <nuttx/config.h>
26+
27+
#include <assert.h>
28+
#include <fcntl.h>
2629
#include <stdio.h>
2730
#include <unistd.h>
28-
#include <fcntl.h>
31+
2932
#include "ostest.h"
3033

3134
/****************************************************************************

testing/ostest/fpu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include <nuttx/arch.h>
2727
#include <sys/wait.h>
2828

29+
#include <assert.h>
2930
#include <inttypes.h>
3031
#include <stdio.h>
3132
#include <stdlib.h>

testing/ostest/getopt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
#include <nuttx/config.h>
2626

27+
#include <assert.h>
2728
#include <getopt.h>
2829
#include <stdio.h>
2930
#include <string.h>

testing/ostest/mqueue.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,16 @@
2424

2525
#include <nuttx/config.h>
2626

27-
#include <stdio.h>
28-
#include <unistd.h>
29-
#include <string.h>
27+
#include <assert.h>
3028
#include <ctype.h>
29+
#include <errno.h>
3130
#include <fcntl.h>
32-
#include <pthread.h>
3331
#include <mqueue.h>
32+
#include <pthread.h>
3433
#include <sched.h>
35-
#include <errno.h>
34+
#include <stdio.h>
35+
#include <string.h>
36+
#include <unistd.h>
3637

3738
#include "ostest.h"
3839

testing/ostest/mutex.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@
2222
* Included Files
2323
****************************************************************************/
2424

25-
#include <stdio.h>
25+
#include <assert.h>
2626
#include <pthread.h>
27+
#include <stdio.h>
28+
2729
#include "ostest.h"
2830

2931
/****************************************************************************

0 commit comments

Comments
 (0)