From a4f165a2133b8b4836821729bb07f87081d5aef5 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Fri, 27 Jul 2007 15:24:27 +0300 Subject: [PATCH] More fixes for handling dir and file varibles --- src/file.h | 4 ++-- src/route.c | 2 +- src/track.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/file.h b/src/file.h index da01b30..f844479 100644 --- a/src/file.h +++ b/src/file.h @@ -1,8 +1,8 @@ #ifndef _MAPPER_FILE_H #define _MAPPER_FILE_H -gboolean file_save(gchar *dir, gchar *file, GnomeVFSHandle **vfs); -gboolean file_open(gchar *dir, gchar *file, GnomeVFSHandle **vfs); +gboolean file_save(gchar **dir, gchar **file, GnomeVFSHandle **vfs); +gboolean file_open(gchar **dir, gchar **file, GnomeVFSHandle **vfs); gboolean open_file(gchar ** bytes_out, GnomeVFSHandle ** handle_out, gint * size_out, gchar ** dir, gchar ** file, GtkFileChooserAction chooser_action); diff --git a/src/route.c b/src/route.c index 2dac699..8b1452c 100644 --- a/src/route.c +++ b/src/route.c @@ -70,7 +70,7 @@ route_save(void) { GnomeVFSHandle *handle; -if (file_save(_route_dir_uri, _route_dir_uri, &handle)) { +if (file_save(&_route_dir_uri, &_route_dir_uri, &handle)) { if (write_gpx(&_route, handle)) { MACRO_BANNER_SHOW_INFO(_window, _("Route Saved")); } else { diff --git a/src/track.c b/src/track.c index 14055aa..408e46a 100644 --- a/src/track.c +++ b/src/track.c @@ -267,7 +267,7 @@ gboolean track_save(void) GnomeVFSHandle *handle; gboolean r = FALSE; - if (file_save(_track_file_uri, _track_file_uri, &handle)) { + if (file_save(&_track_file_uri, &_track_file_uri, &handle)) { if (write_gpx(&_track, handle)) { MACRO_BANNER_SHOW_INFO(_window, _("Track Saved")); r = TRUE; -- 2.39.5