mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
lib/vfs/path.c: cleanup some -Wcast-qual warning.
Signed-off-by: Andreas Mohr <and@gmx.li> Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
9dddb0c78f
commit
3231160d99
@ -805,11 +805,11 @@ vfs_path_elements_count (const vfs_path_t * vpath)
|
||||
*/
|
||||
|
||||
void
|
||||
vfs_path_add_element (const vfs_path_t * vpath, const vfs_path_element_t * path_element)
|
||||
vfs_path_add_element (vfs_path_t * vpath, const vfs_path_element_t * path_element)
|
||||
{
|
||||
g_array_append_val (vpath->path, path_element);
|
||||
g_free (vpath->str);
|
||||
((vfs_path_t *) vpath)->str = vfs_path_to_str_flags (vpath, 0, VPF_NONE);
|
||||
vpath->str = vfs_path_to_str_flags (vpath, 0, VPF_NONE);
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
@ -74,7 +74,7 @@ size_t vfs_path_tokens_count (const vfs_path_t *);
|
||||
char *vfs_path_tokens_get (const vfs_path_t * vpath, ssize_t start_position, ssize_t length);
|
||||
vfs_path_t *vfs_path_vtokens_get (const vfs_path_t * vpath, ssize_t start_position, ssize_t length);
|
||||
|
||||
void vfs_path_add_element (const vfs_path_t * vpath, const vfs_path_element_t * path_element);
|
||||
void vfs_path_add_element (vfs_path_t * vpath, const vfs_path_element_t * path_element);
|
||||
const vfs_path_element_t *vfs_path_get_by_index (const vfs_path_t * path, int element_index);
|
||||
vfs_path_element_t *vfs_path_element_clone (const vfs_path_element_t * element);
|
||||
void vfs_path_element_free (vfs_path_element_t * element);
|
||||
|
Loading…
Reference in New Issue
Block a user