AP_HAL_ChibiOS: Make getcwd() take size_t as per the standard

This commit is contained in:
Michael du Breuil 2018-09-28 01:40:36 -07:00 committed by Andrew Tridgell
parent 19e0fa5214
commit f810b7b9f6
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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 );