From f35a11e95c3754b17a8f8d39ba16f363e3086a59 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Fri, 23 Mar 2012 14:38:36 +0300 Subject: [PATCH] (vfs_get_raw_current_dir): return pointer to constant. Signed-off-by: Andrew Borodin Signed-off-by: Slava Zanko --- lib/vfs/gc.c | 2 +- lib/vfs/vfs.c | 2 +- lib/vfs/vfs.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/vfs/gc.c b/lib/vfs/gc.c index 5e95edc8d..7ce7e6952 100644 --- a/lib/vfs/gc.c +++ b/lib/vfs/gc.c @@ -182,7 +182,7 @@ vfs_stamp_create (struct vfs_class *vclass, vfsid id) vfsid nvfsid; ev_vfs_stamp_create_t event_data = { vclass, id, FALSE }; - vfs_path_t *vpath; + const vfs_path_t *vpath; const vfs_path_element_t *path_element; /* There are three directories we have to take care of: current_dir, diff --git a/lib/vfs/vfs.c b/lib/vfs/vfs.c index 0a0e7a626..dfff016f2 100644 --- a/lib/vfs/vfs.c +++ b/lib/vfs/vfs.c @@ -374,7 +374,7 @@ vfs_get_current_dir (void) * @return object contain current path */ -vfs_path_t * +const vfs_path_t * vfs_get_raw_current_dir (void) { return current_path; diff --git a/lib/vfs/vfs.h b/lib/vfs/vfs.h index 3e9e4e2e0..83d625d8e 100644 --- a/lib/vfs/vfs.h +++ b/lib/vfs/vfs.h @@ -232,7 +232,7 @@ int vfs_timeouts (void); void vfs_expire (int now); char *vfs_get_current_dir (void); -vfs_path_t *vfs_get_raw_current_dir (void); +const vfs_path_t *vfs_get_raw_current_dir (void); void vfs_set_raw_current_dir (const vfs_path_t * vpath); gboolean vfs_current_is_local (void); -- 2.11.4.GIT