diff options
author | Ted Gould <ted@gould.cx> | 2010-03-04 00:39:52 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-03-04 00:39:52 -0600 |
commit | 3c0e73c7ec818b6759a7805abe07909296791908 (patch) | |
tree | faf9190401e902e976db94b253ad23ad23f8cf99 /src | |
parent | f1d31773ebf223650d4e26509403196e1a9bf53f (diff) | |
download | ayatana-indicator-messages-3c0e73c7ec818b6759a7805abe07909296791908.tar.gz ayatana-indicator-messages-3c0e73c7ec818b6759a7805abe07909296791908.tar.bz2 ayatana-indicator-messages-3c0e73c7ec818b6759a7805abe07909296791908.zip |
Keeping our desktop file paths safe.
Diffstat (limited to 'src')
-rw-r--r-- | src/default-applications.c | 6 | ||||
-rw-r--r-- | src/default-applications.h | 4 |
2 files changed, 5 insertions, 5 deletions
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 <http://www.gnu.org/licenses/>. #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__ */ |