From 3c0e73c7ec818b6759a7805abe07909296791908 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 4 Mar 2010 00:39:52 -0600 Subject: Keeping our desktop file paths safe. --- src/default-applications.c | 6 +++--- src/default-applications.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/default-applications.c b/src/default-applications.c index f1b11c0..5fd6612 100644 --- a/src/default-applications.c +++ b/src/default-applications.c @@ -37,7 +37,7 @@ struct default_db_t default_db[] = { }; static struct default_db_t * -get_default_helper (gchar * desktop_path) +get_default_helper (const gchar * desktop_path) { g_return_val_if_fail(desktop_path != NULL, NULL); gchar * basename = g_path_get_basename(desktop_path); @@ -60,7 +60,7 @@ get_default_helper (gchar * desktop_path) } const gchar * -get_default_name (gchar * desktop_path) +get_default_name (const gchar * desktop_path) { struct default_db_t * db = get_default_helper(desktop_path); @@ -70,7 +70,7 @@ get_default_name (gchar * desktop_path) } const gchar * -get_default_setup (gchar * desktop_path) +get_default_setup (const gchar * desktop_path) { struct default_db_t * db = get_default_helper(desktop_path); diff --git a/src/default-applications.h b/src/default-applications.h index f5d00c4..13cc904 100644 --- a/src/default-applications.h +++ b/src/default-applications.h @@ -22,8 +22,8 @@ with this program. If not, see . #ifndef DEFAULT_APPLICATIONS_H__ #define DEFAULT_APPLICATIONS_H__ 1 -const gchar * get_default_name (gchar * desktop_path); -const gchar * get_default_setup (gchar * desktop_path); +const gchar * get_default_name (const gchar * desktop_path); +const gchar * get_default_setup (const gchar * desktop_path); #endif /* DEFAULT_APPLICATIONS_H__ */ -- cgit v1.2.3