Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fun.git;a=commitdiff;h=73b28a352fd3c6b361024e71b3348b01c9d27ccc
commit 73b28a352fd3c6b361024e71b3348b01c9d27ccc Author: Priyank <[email protected]> Date: Tue Mar 10 20:06:24 2009 +0530 Fixed some compiler warnings diff --git a/src/fun-news_backend.c b/src/fun-news_backend.c index 1ada99b..b1e16ef 100644 --- a/src/fun-news_backend.c +++ b/src/fun-news_backend.c @@ -18,6 +18,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include <limits.h> #include <curl/curl.h> #include <curl/types.h> #include <curl/easy.h> @@ -37,8 +38,6 @@ static GList *news_item_list = NULL; /* existing news item list */ static GList *e_news_item_list = NULL; -static gboolean fetched = FALSE; - /** * * fun_newslist_compare_func: @@ -313,18 +312,6 @@ fun_get_news_id_from_url (const char *url) return (atoi(ptr)); } -static size_t -fun_news_write_func (void *ptr, size_t size, size_t nmemb, FILE *stream) -{ - return fwrite (ptr, size, nmemb, stream); -} - -static size_t -fun_news_read_func (void *ptr, size_t size, size_t nmemb, FILE *stream) -{ - return fread (ptr, size, nmemb, stream); -} - void fun_fetch_news_xml (void) { diff --git a/src/fun-news_backend.h b/src/fun-news_backend.h index b675ea6..19d1c95 100644 --- a/src/fun-news_backend.h +++ b/src/fun-news_backend.h @@ -16,7 +16,7 @@ typedef struct _newsitem { void fun_news_backend_init (void); -void populate_existing_news_list (void); +void fun_populate_existing_news_list (void); GList* fun_get_existing_news_list (void); @@ -28,7 +28,7 @@ int fun_save_news_to_file (NewsItem *item); GList* fun_compare_lists (GList *oldlist, GList *newlist); -char* fun_get_news_url_for_id (guint id); +char* fun_news_get_url_for_id (guint id); #endif diff --git a/src/fun-ui.c b/src/fun-ui.c index b3faec2..0102e4a 100644 --- a/src/fun-ui.c +++ b/src/fun-ui.c @@ -481,8 +481,8 @@ fun_main_window_init (void) return; } -void* -fun_init_thread (void *ptr) +static void +fun_init_thread (void) { gulong seconds = 0; gchar *plist = NULL; @@ -528,7 +528,7 @@ fun_ui_init (void) fun_config_dialog_init (); fun_news_interface_init (); - if (!g_thread_create(&fun_init_thread, NULL, FALSE, NULL) != 0) + if (!g_thread_create((GThreadFunc)&fun_init_thread, NULL, FALSE, NULL) != 0) g_warning ("Failed to create FUN init thread"); return; diff --git a/src/fun.c b/src/fun.c index 7d6a82f..4eea38a 100644 --- a/src/fun.c +++ b/src/fun.c @@ -26,6 +26,8 @@ #endif #include "fun.h" +#include "fun-ui.h" +#include "fun-dbus.h" #include "fun-config.h" #include "fun-news_backend.h" #include "fun-messages.h" _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
