AP_HAL_ChibiOS: Make getcwd() take size_t as per the standard
This commit is contained in:
parent
19e0fa5214
commit
f810b7b9f6
@ -1594,7 +1594,7 @@ int fchmod(int fd, mode_t mode)
|
||||
/// @return 0 on sucess.
|
||||
/// @return -1 on error with errno set.
|
||||
|
||||
char *getcwd(char *pathname, int len)
|
||||
char *getcwd(char *pathname, size_t len)
|
||||
{
|
||||
int res;
|
||||
errno = 0;
|
||||
|
@ -361,7 +361,7 @@ int dirname ( char *str );
|
||||
int fchmod ( int fd , mode_t mode );
|
||||
#endif
|
||||
|
||||
char *getcwd ( char *pathname , int len );
|
||||
char *getcwd ( char *pathname , size_t len );
|
||||
int mkdir ( const char *pathname , mode_t mode );
|
||||
int rename ( const char *oldpath , const char *newpath );
|
||||
int rmdir ( const char *pathname );
|
||||
|
Loading…
Reference in New Issue
Block a user