dir file and dev can be const

This commit is contained in:
Lailouezzz 2020-01-05 16:53:05 +01:00
parent 6a91e8f16e
commit fee76e5431
Signed by: Lailouezzz
GPG Key ID: 03FCE8A99EF8482C
1 changed files with 3 additions and 3 deletions

View File

@ -185,9 +185,9 @@ int CASIO_EXPORT casio_sevenfs_open(sevenfs_cookie_t *cookie, sevenfs_path_t *pa
casio_off_t size, casio_openmode_t mode, casio_stream_t **stream)
{
casio_link_t *handle = cookie; int err;
char *dirname = &path->sevenfs_path_data[path->sevenfs_path_dir];
char *filename = &path->sevenfs_path_data[path->sevenfs_path_file];
char *devname = &path->sevenfs_path_data[path->sevenfs_path_dev];
const char *dirname = &path->sevenfs_path_data[path->sevenfs_path_dir];
const char *filename = &path->sevenfs_path_data[path->sevenfs_path_file];
const char *devname = &path->sevenfs_path_data[path->sevenfs_path_dev];
/* Make checks (not really required) */
chk_required_filename(filename);