First of many fixes to come.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15248 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2021-12-24 10:39:15 +00:00
parent 7a34d5d52d
commit 8e60050444
2 changed files with 6 additions and 9 deletions

View File

@ -112,7 +112,7 @@ typedef struct vfs_overlay_dir_node {
/* Path prefix for the overlaid driver or NULL.*/ \ /* Path prefix for the overlaid driver or NULL.*/ \
const char *path_prefix ; \ const char *path_prefix ; \
/* Current directory or NULL.*/ \ /* Current directory or NULL.*/ \
char *path_cwd; \ char *path_cwd; \
/* Buffer for absolute current directory or NULL. Contains the prefix /* Buffer for absolute current directory or NULL. Contains the prefix
plus the current directory normalized.*/ \ plus the current directory normalized.*/ \
char *cwd_buffer; \ char *cwd_buffer; \

View File

@ -77,16 +77,13 @@
/* Module macros. */ /* Module macros. */
/*===========================================================================*/ /*===========================================================================*/
#define VFS_BREAK_ON_ERROR(err) do { \ #define VFS_BREAK_ON_ERROR(err) \
if ((err) < VFS_RET_SUCCESS) { \ if ((err) < VFS_RET_SUCCESS) break
break; \
} \
} while (false)
#define VFS_RETURN_ON_ERROR(err) do { \ #define VFS_RETURN_ON_ERROR(err) do { \
msg_t ret = (err); \ msg_t __ret = (err); \
if (ret < VFS_RET_SUCCESS) { \ if (__ret < VFS_RET_SUCCESS) { \
return ret; \ return __ret; \
} \ } \
} while (false) } while (false)