comparison src/proxy.c @ 12816:ff267281e882

[gaim-migrate @ 15164] Get rid of a compile warning by changing the definition of (*GaimPrefCallback) to pass a gconstpointer val instead of gpointer committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 11 Jan 2006 04:32:12 +0000
parents ac41924f8bb0
children 36930e2a461e
comparison
equal deleted inserted replaced
12815:a8bffa7fb6ac 12816:ff267281e882
2063 connection_host_resolved, phb); 2063 connection_host_resolved, phb);
2064 } 2064 }
2065 2065
2066 2066
2067 static void 2067 static void
2068 proxy_pref_cb(const char *name, GaimPrefType type, gpointer value, 2068 proxy_pref_cb(const char *name, GaimPrefType type,
2069 gpointer data) 2069 gconstpointer value, gpointer data)
2070 { 2070 {
2071 GaimProxyInfo *info = gaim_global_proxy_get_info(); 2071 GaimProxyInfo *info = gaim_global_proxy_get_info();
2072 2072
2073 if (!strcmp(name, "/core/proxy/type")) { 2073 if (!strcmp(name, "/core/proxy/type")) {
2074 int proxytype; 2074 int proxytype;
2075 char *type = value; 2075 const char *type = value;
2076 2076
2077 if (!strcmp(type, "none")) 2077 if (!strcmp(type, "none"))
2078 proxytype = GAIM_PROXY_NONE; 2078 proxytype = GAIM_PROXY_NONE;
2079 else if (!strcmp(type, "http")) 2079 else if (!strcmp(type, "http"))
2080 proxytype = GAIM_PROXY_HTTP; 2080 proxytype = GAIM_PROXY_HTTP;