diff options
author | Jason Copenhaver <jcopenha@typedef.org> | 2015-01-16 16:50:24 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-01-16 16:50:24 -0300 |
commit | 25c4c78e2ddad482dfc9d5a104f76325fcc2f8e5 (patch) | |
tree | 4b6628d38e54a55b6059948ff8bad6b3c13b719b /ipc.c | |
parent | 7549d0074aa4917e62106ac285b05baa1e76c1e9 (diff) |
Fix compiler warnings on Cygwin and Mac OS X.
* Don't use PIE/PIC on Cygwin/Darwin unless specified as these
platforms don't support it.
* Cleanup warnings for 'make check' build.
* Fix the type issue for getsockopt calls.
* Fix enum warnings in Yahoo libs on Mac OS X.
Diffstat (limited to 'ipc.c')
-rw-r--r-- | ipc.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -523,7 +523,9 @@ static void ipc_command_exec( void *data, char **cmd, const command_t *commands if( g_strcasecmp( commands[i].command, cmd[0] ) == 0 ) { /* There is no typo in this line: */ - for( j = 1; cmd[j]; j ++ ); j --; + for( j = 1; cmd[j]; j ++ ) + ; + j--; if( j < commands[i].required_parameters ) break; |