[gnome-control-center] network: Fix compile-time warning
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] network: Fix compile-time warning
- Date: Mon, 20 Sep 2010 17:25:38 +0000 (UTC)
commit 892e513996f3c49cda4573b2f3385942ebd12ee7
Author: Bastien Nocera <hadess hadess net>
Date: Mon Sep 20 18:12:09 2010 +0100
network: Fix compile-time warning
gnome-network-properties.c:667:22: warning: pointer of type â??void *â?? used in arithmetic
gnome-network-properties.c:667:46: warning: pointer of type â??void *â?? used in arithmetic
panels/network/gnome-network-properties.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/network/gnome-network-properties.c b/panels/network/gnome-network-properties.c
index 47d1f56..b05b026 100644
--- a/panels/network/gnome-network-properties.c
+++ b/panels/network/gnome-network-properties.c
@@ -664,7 +664,7 @@ update_locations (GConfClient *client,
{
gchar *locp, *key_name;
- locp = iter->data + strlen (LOCATION_DIR) + 1;
+ locp = (char *) (iter->data) + strlen (LOCATION_DIR) + 1;
key_name = gconf_unescape_key (locp, -1);
gtk_list_store_append (store, &titer);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]