aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@novell.com>2004-10-02 02:08:30 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-10-02 02:08:30 +0800
commit8193d1ea904f7ded10d9b2ffca04643e608176c5 (patch)
tree5a076dbc28ea4e31f5d40cc15e1389fad6948109
parentacb88c209ef296564123666cdc18c787a0f91082 (diff)
downloadgsoc2013-evolution-8193d1ea904f7ded10d9b2ffca04643e608176c5.tar.gz
gsoc2013-evolution-8193d1ea904f7ded10d9b2ffca04643e608176c5.tar.zst
gsoc2013-evolution-8193d1ea904f7ded10d9b2ffca04643e608176c5.zip
Avoid assigning a value to the member of a const struct (which newer gcc's
2004-10-01 Jeffrey Stedfast <fejj@novell.com> * camel-service.c (camel_getaddrinfo): Avoid assigning a value to the member of a const struct (which newer gcc's apparently break over) by casting to non-const. svn path=/trunk/; revision=27449
-rw-r--r--camel/ChangeLog6
-rw-r--r--camel/camel-service.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index a5618f012a..31f1243b56 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,9 @@
+2004-10-01 Jeffrey Stedfast <fejj@novell.com>
+
+ * camel-service.c (camel_getaddrinfo): Avoid assigning a value to
+ the member of a const struct (which newer gcc's apparently break
+ over) by casting to non-const.
+
2004-09-28 Not Zed <NotZed@Ximian.com>
** See bug #66509.
diff --git a/camel/camel-service.c b/camel/camel-service.c
index 171bfe6061..3ec768efa7 100644
--- a/camel/camel-service.c
+++ b/camel/camel-service.c
@@ -897,7 +897,7 @@ camel_getaddrinfo(const char *name, const char *service, const struct addrinfo *
hints = &myhints;
}
- hints->ai_family = AF_INET;
+ ((struct addrinfo *) hints)->ai_family = AF_INET;
#endif
msg = g_malloc0(sizeof(*msg));