syscalls: fix arguments and return type for _raise_r

ROM code still uses incorrect function signature.

Closes https://github.com/espressif/esp-idf/issues/2245.
pull/2237/merge
Ivan Grokhotkov 2018-07-31 12:08:04 +03:00
rodzic 1c7a8b3b71
commit 1fdbbec13a
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -51,7 +51,7 @@ struct syscall_stub_table
int (*_rename_r)(struct _reent *r, const char*, const char*);
clock_t (*_times_r)(struct _reent *r, struct tms *);
int (*_gettimeofday_r) (struct _reent *r, struct timeval *, void *);
void (*_raise_r)(struct _reent *r);
void (*_raise_r)(struct _reent *r); /* function signature is incorrect in ROM */
int (*_unlink_r)(struct _reent *r, const char*);
int (*_link_r)(struct _reent *r, const char*, const char*);
int (*_stat_r)(struct _reent *r, const char*, struct stat *);

Wyświetl plik

@ -68,7 +68,7 @@ int _system_r(struct _reent *r, const char *str)
return -1;
}
void _raise_r(struct _reent *r)
int _raise_r(struct _reent *r, int sig)
{
abort();
}