diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-09-12 12:44:03 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-09-12 12:44:03 -0600 |
commit | 9619b20ae24a0f22e6a32636868ef7d0f893e3e2 (patch) | |
tree | 81ef4649d665d55d19efee5ecf500ee8421a4534 /nuttx/tools/mksyscall.c | |
parent | 326e6c1e6bd3e32fd4ed1e3a6c0571b2dd3afdb6 (diff) | |
download | px4-nuttx-9619b20ae24a0f22e6a32636868ef7d0f893e3e2.tar.gz px4-nuttx-9619b20ae24a0f22e6a32636868ef7d0f893e3e2.tar.bz2 px4-nuttx-9619b20ae24a0f22e6a32636868ef7d0f893e3e2.zip |
Cosmetic changes
Diffstat (limited to 'nuttx/tools/mksyscall.c')
-rw-r--r-- | nuttx/tools/mksyscall.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nuttx/tools/mksyscall.c b/nuttx/tools/mksyscall.c index b2616c09d..331a16f25 100644 --- a/nuttx/tools/mksyscall.c +++ b/nuttx/tools/mksyscall.c @@ -94,6 +94,7 @@ static const char *check_funcptr(const char *type) { return str + 2; } + return NULL; } @@ -104,6 +105,7 @@ static const char *check_array(const char *type) { return str; } + return NULL; } @@ -114,7 +116,8 @@ static void print_formalparm(FILE *stream, const char *argtype, int parmno) /* Function pointers and array formal parameter types are a little more work */ - if ((part2 = check_funcptr(argtype)) != NULL || (part2 = check_array(argtype)) != NULL) + if ((part2 = check_funcptr(argtype)) != NULL || + (part2 = check_array(argtype)) != NULL) { len = part2 - argtype; (void)fwrite(argtype, 1, len, stream); @@ -280,6 +283,7 @@ static void generate_proxy(int nparms) { fprintf(stream, ", "); } + print_formalparm(stream, formal, i+1); } } |