From c90ba0a3be89760587965db601c42c2945771e5f Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 12 Jul 2010 14:40:04 +0200 Subject: [PATCH] cups: Fix cast warnings --- modules/printbackends/cups/gtkprintbackendcups.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c index 11616186ff..9d3a1eb66a 100644 --- a/modules/printbackends/cups/gtkprintbackendcups.c +++ b/modules/printbackends/cups/gtkprintbackendcups.c @@ -963,7 +963,7 @@ check_auth_info (gpointer user_data) "auth-info", length, NULL, - dispatch->request->auth_info); + (const char * const *) dispatch->request->auth_info); g_source_attach ((GSource *) dispatch, NULL); g_source_unref ((GSource *) dispatch); @@ -1248,7 +1248,7 @@ cups_request_execute (GtkPrintBackendCups *print_backend, dispatch = (GtkPrintCupsDispatchWatch *) g_source_new (&_cups_dispatch_watch_funcs, sizeof (GtkPrintCupsDispatchWatch)); - g_source_set_name (dispatch, "GTK+ CUPS backend"); + g_source_set_name (&dispatch->source, "GTK+ CUPS backend"); GTK_NOTE (PRINTING, g_print ("CUPS Backend: %s - Executing cups request on server '%s' and resource '%s'\n", G_STRFUNC, dispatch, request->server, request->resource));