mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-07 06:05:10 +00:00
apps/system/system.c: Fix warning when passing argument 6 of 'task_spawn' from incompatible pointer type [-Wincompatible-pointer-types]
This commit is contained in:
parent
2d4df65040
commit
4804d74c61
1 changed files with 2 additions and 2 deletions
|
|
@ -74,7 +74,7 @@
|
|||
|
||||
int system(FAR const char *cmd)
|
||||
{
|
||||
FAR const char *argv[2];
|
||||
FAR char *argv[2];
|
||||
struct sched_param param;
|
||||
posix_spawnattr_t attr;
|
||||
pid_t pid;
|
||||
|
|
@ -141,7 +141,7 @@ int system(FAR const char *cmd)
|
|||
|
||||
/* Spawn nsh_system() which will execute the command under the shell. */
|
||||
|
||||
argv[0] = cmd;
|
||||
argv[0] = (FAR char *)cmd;
|
||||
argv[1] = NULL;
|
||||
|
||||
#ifdef CONFIG_BUILD_LOADABLE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue