Avoid assigning a value to the member of a const struct (which newer gcc's
authorJeffrey Stedfast <fejj@novell.com>
Fri, 1 Oct 2004 18:08:30 +0000 (18:08 +0000)
committerJeffrey Stedfast <fejj@src.gnome.org>
Fri, 1 Oct 2004 18:08:30 +0000 (18:08 +0000)
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.

camel/ChangeLog
camel/camel-service.c

index a5618f0..31f1243 100644 (file)
@@ -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.
index 171bfe6..3ec768e 100644 (file)
@@ -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));