beagle r4848 - trunk/libbeagle/beagle



Author: arunsr
Date: Fri Jul 25 08:04:17 2008
New Revision: 4848
URL: http://svn.gnome.org/viewvc/beagle?rev=4848&view=rev

Log:
Fix some function prototypes so we don't get warnings with -Wstrict-prototypes
(useful for clients that include our headers and generate these warnings)


Modified:
   trunk/libbeagle/beagle/beagle-private.h
   trunk/libbeagle/beagle/beagle-util.c
   trunk/libbeagle/beagle/beagle-util.h

Modified: trunk/libbeagle/beagle/beagle-private.h
==============================================================================
--- trunk/libbeagle/beagle/beagle-private.h	(original)
+++ trunk/libbeagle/beagle/beagle-private.h	Fri Jul 25 08:04:17 2008
@@ -116,7 +116,7 @@
 
 GString *_beagle_query_part_to_xml    (BeagleQueryPart *part);
 
-char *_beagle_util_set_c_locale ();
+char *_beagle_util_set_c_locale (void);
 void _beagle_util_reset_locale (char *old_locale);
 
 void _beagle_query_part_append_standard_header (GString *data,

Modified: trunk/libbeagle/beagle/beagle-util.c
==============================================================================
--- trunk/libbeagle/beagle/beagle-util.c	(original)
+++ trunk/libbeagle/beagle/beagle-util.c	Fri Jul 25 08:04:17 2008
@@ -59,7 +59,7 @@
 }
 
 const char *
-beagle_util_get_home_dir ()
+beagle_util_get_home_dir (void)
 {
 	const char *beagle_home;
 
@@ -74,7 +74,7 @@
 }
 
 char *
-beagle_util_get_storage_dir ()
+beagle_util_get_storage_dir (void)
 {
 	const char *beagle_home;
 	char *beagle_storage_dir;
@@ -176,7 +176,7 @@
 }
 
 char*
-_beagle_util_set_c_locale ()
+_beagle_util_set_c_locale (void)
 {
 	char *old_locale, *saved_locale;
 

Modified: trunk/libbeagle/beagle/beagle-util.h
==============================================================================
--- trunk/libbeagle/beagle/beagle-util.h	(original)
+++ trunk/libbeagle/beagle/beagle-util.h	Fri Jul 25 08:04:17 2008
@@ -40,8 +40,8 @@
 
 gboolean beagle_util_is_path_on_block_device (const char *path);
 
-const gchar *beagle_util_get_home_dir ();
-const gchar *beagle_util_get_socket_dir ();
+const gchar *beagle_util_get_home_dir (void);
+const gchar *beagle_util_get_socket_dir (void);
 gchar *beagle_util_get_socket_path (const char *client_name);
 
 gboolean beagle_util_daemon_is_running (void);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]