[gtranslator] Fix warnings on arguments
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtranslator] Fix warnings on arguments
- Date: Sun, 16 Aug 2009 21:35:32 +0000 (UTC)
commit 91ad884569e7bd0fe21de5edc944040f5c3c68c8
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Sun Aug 16 23:34:29 2009 +0200
Fix warnings on arguments
src/utils.c | 17 ++++++++---------
src/utils.h | 4 ++--
2 files changed, 10 insertions(+), 11 deletions(-)
---
diff --git a/src/utils.c b/src/utils.c
index 53b03de..bcd9200 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -1000,14 +1000,14 @@ gtranslator_utils_reduce_path (const gchar *path)
* the pixmaps. If filename is NULL returns the path to the folder PIXMAPSDIR
*/
gchar *
-gtranslator_utils_get_file_from_pixmapsdir (gchar *filename)
+gtranslator_utils_get_file_from_pixmapsdir (const gchar *filename)
{
gchar *path;
#ifndef G_OS_WIN32
- path = g_build_filename(PIXMAPSDIR,
- filename,
- NULL);
+ path = g_build_filename (PIXMAPSDIR,
+ filename,
+ NULL);
#else
gchar *win32_dir;
@@ -1033,14 +1033,14 @@ gtranslator_utils_get_file_from_pixmapsdir (gchar *filename)
* that contains the data of the package.
*/
gchar *
-gtranslator_utils_get_file_from_pkgdatadir (gchar *filename)
+gtranslator_utils_get_file_from_pkgdatadir (const gchar *filename)
{
gchar *path;
#ifndef G_OS_WIN32
- path = g_build_filename(PKGDATADIR,
- filename,
- NULL);
+ path = g_build_filename (PKGDATADIR,
+ filename,
+ NULL);
#else
gchar *win32_dir;
@@ -1091,7 +1091,6 @@ gtranslator_utils_get_datadir (void)
*
* Returns the path to the GTR_PLUGINDIR folder on windows
*/
-
gchar *
gtranslator_utils_get_win32_plugindir (void)
{
diff --git a/src/utils.h b/src/utils.h
index 1ae9dec..37923c7 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -92,9 +92,9 @@ void gtranslator_utils_scan_dir (GFile *dir,
gchar * gtranslator_utils_reduce_path (const gchar *path);
-gchar *gtranslator_utils_get_file_from_pixmapsdir (gchar *filename);
+gchar *gtranslator_utils_get_file_from_pixmapsdir (const gchar *filename);
-gchar *gtranslator_utils_get_file_from_pkgdatadir (gchar *filename);
+gchar *gtranslator_utils_get_file_from_pkgdatadir (const gchar *filename);
gchar *gtranslator_utils_get_datadir (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]