mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
Replace bzero() with memset().
Define AF_LOCAL and SUN_LEN for systems that lack them. Don't mix function and non function pointers without casting. Fix a potential type mismatch in assignment.
This commit is contained in:
@@ -415,7 +415,7 @@ verrmsg_full( GtkWindow * wind, callbackfunc_t func, void * data,
|
||||
if(NULL == func)
|
||||
funcdata = NULL;
|
||||
else
|
||||
funcdata = g_list_append(g_list_append(NULL, func), data);
|
||||
funcdata = g_list_append(g_list_append(NULL, (void *) func), data);
|
||||
g_signal_connect(dialog, "response", G_CALLBACK(errcb), funcdata);
|
||||
g_free(msg);
|
||||
|
||||
@@ -429,7 +429,7 @@ errcb(GtkWidget *widget, int resp SHUTUP, gpointer data) {
|
||||
|
||||
if(NULL != data) {
|
||||
funcdata = g_list_first(data);
|
||||
func = funcdata->data;
|
||||
func = (callbackfunc_t) funcdata->data;
|
||||
data = funcdata->next->data;
|
||||
func(data);
|
||||
g_list_free(funcdata);
|
||||
|
||||
Reference in New Issue
Block a user