Minor function signature fixes

This commit is contained in:
pancake 2019-07-15 16:22:20 +02:00
parent f168077635
commit 2f9acaeead
2 changed files with 3 additions and 3 deletions

View File

@ -226,7 +226,7 @@ static void trace_me (void) {
}
#endif
void handle_posix_error(int err) {
static void handle_posix_error(int err) {
switch (err) {
case 0:
// eprintf ("Success\n");
@ -288,7 +288,7 @@ static RRunProfile* _get_run_profile(RIO *io, int bits, char **argv) {
#if __APPLE__ && !__POWERPC__
static void handle_redirection(char *path, int flag, posix_spawn_file_actions_t *fileActions, int fd) {
static void handle_redirection(const char *path, int flag, posix_spawn_file_actions_t *fileActions, int fd) {
int mode = S_IRUSR | S_IWUSR;
posix_spawn_file_actions_addopen (fileActions, fd, path, flag, mode);
}

View File

@ -17,7 +17,7 @@ R_LIB_VERSION(r_socket);
#if NETWORK_DISABLED
/* no network */
R_API RSocket *r_socket_new (int is_ssl) {
R_API RSocket *r_socket_new (bool is_ssl) {
return NULL;
}
R_API bool r_socket_is_connected (RSocket *s) {