Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fun.git;a=commitdiff;h=7868a3f8cb9d53ec00d36cdd5ae70d8d80d2a2e3

commit 7868a3f8cb9d53ec00d36cdd5ae70d8d80d2a2e3
Author: Priyank <[email protected]>
Date:   Wed Mar 11 19:47:24 2009 +0530

silenced compiler warningsn

diff --git a/src/fun-config.c b/src/fun-config.c
index 12c15b6..b650ffd 100644
--- a/src/fun-config.c
+++ b/src/fun-config.c
@@ -150,7 +150,7 @@ void
fun_config_set_value_string (const char *key, char *value)
{
char *val = g_strdup_printf (value);
-       cfg_add_key (&conf, key, value);
+       cfg_add_key (&conf, (char*) key, value);
g_free (val);

return;
@@ -160,7 +160,7 @@ void
fun_config_set_value_int (const char *key, int value)
{
char *val = g_strdup_printf ("%d", value);
-       cfg_add_key (&conf, key, val);
+       cfg_add_key (&conf, (char*) key, val);
g_free (val);

return;
diff --git a/src/fun-news_backend.c b/src/fun-news_backend.c
index 6c75c1a..be16cd6 100644
--- a/src/fun-news_backend.c
+++ b/src/fun-news_backend.c
@@ -173,7 +173,7 @@ fun_populate_existing_news_list (void)
char *path = NULL;
char *npath = NULL;

-       path = cfg_get_path_to_config_file (NEWS_ITEM_LIST);
+       path = cfg_get_path_to_config_file ((char*)NEWS_ITEM_LIST);
if (!(fp=fopen(path,"r")))
{
//printf ("fun_populate_existing_news_list: couldn't open news item list \n");
@@ -216,7 +216,7 @@ fun_add_entry_to_newslist (gint id)
char line[PATH_MAX+1];
int temp;

-       path = cfg_get_path_to_config_file (NEWS_ITEM_LIST);
+       path = cfg_get_path_to_config_file ((char*)NEWS_ITEM_LIST);
fp = fopen (path, "r");
if (fp != NULL)
{
@@ -335,9 +335,10 @@ fun_fetch_news_xml (void)
{
nxml_data_t *child = NULL;
nxml_data_t *d = NULL;
+               NewsItem *newsitem = NULL;
child = nndata;
-
-               NewsItem *newsitem = (NewsItem*) malloc (sizeof(NewsItem));
+
+               newsitem = (NewsItem*) malloc (sizeof(NewsItem));
memset (newsitem, 0, sizeof(NewsItem));

/* title */
diff --git a/src/fun-ui.c b/src/fun-ui.c
index a2ce9b6..b405b85 100644
--- a/src/fun-ui.c
+++ b/src/fun-ui.c
@@ -49,9 +49,9 @@ static GdkPixbuf              *fun_about_pixbuf = NULL;
static GtkWidget                *fun_config_dlg = NULL;
static GtkWidget                *fun_config_gfpm_launcher_combo = NULL;
static GtkWidget                *fun_config_browser_list_combo = NULL;
-static GtkAdjustment           *fun_config_upd_int_adj = NULL;
-static GtkAdjustment           *fun_config_news_int_adj = NULL;
-static GtkAdjustment           *fun_config_not_tim_adj = NULL;
+static GtkAdjustment   *fun_config_upd_int_adj = NULL;
+static GtkAdjustment   *fun_config_news_int_adj = NULL;
+static GtkAdjustment   *fun_config_not_tim_adj = NULL;
static GtkWidget                *fun_config_news_chkbtn = NULL;
static gboolean                 connected = FALSE;

diff --git a/src/fun.c b/src/fun.c
index 4eea38a..812977a 100644
--- a/src/fun.c
+++ b/src/fun.c
@@ -1,7 +1,7 @@
/*
*  fun.c for fun
*
- *  Copyright (C) 2007 by Priyank Gosalia <[email protected]>
+ *  Copyright (C) 2007-2009 by Priyank Gosalia <[email protected]>
*
*  This program is free software; you can redistribute it and/or modify
*  it under the terms of the GNU General Public License as published by
diff --git a/src/fund.c b/src/fund.c
index 01305b0..a116d08 100644
--- a/src/fund.c
+++ b/src/fund.c
@@ -1,7 +1,7 @@
/*
*  fund.c for fun
*
- *  Copyright (C) 2007 by Priyank Gosalia <[email protected]>
+ *  Copyright (C) 2007-2009 by Priyank Gosalia <[email protected]>
*  Portions of this code are borrowed from netconfigd
*  netconfigd is Copyright (C) 2007 by Alex Smith <[email protected]>
*
@@ -130,10 +130,10 @@ _updatenotifierd_init_pacman () {
/* register the main repo */
/* FIXME: Later add support for custom repos */
if (fw_repo == FW_REPO_CURRENT)
-               sync_db = pacman_db_register (FW_CURRENT);
+               sync_db = pacman_db_register ((char*)FW_CURRENT);
else
-               sync_db = pacman_db_register (FW_STABLE);
-       local_db = pacman_db_register ("local");
+               sync_db = pacman_db_register ((char*)FW_STABLE);
+       local_db = pacman_db_register ((char*)"local");

if (sync_db == NULL)
return FALSE;
@@ -227,7 +227,7 @@ gboolean fund_test_service(FWUpdateNotifier *obj, gint 
*ret, GError **error) {
return TRUE;
}

-void usage() {
+void usage (void) {
printf("fund (Frugalware Update Notifier Daemon) v" VERSION "\n");
printf(" --help        Display this help text\n");
printf(" --daemon      Fork into the background\n");
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to