File libgnomecups-buildfixes.patch of Package libgnomecups

Index: libgnomecups-0.2.3/libgnomecups/gnome-cups-request.c
===================================================================
--- libgnomecups-0.2.3.orig/libgnomecups/gnome-cups-request.c
+++ libgnomecups-0.2.3/libgnomecups/gnome-cups-request.c
@@ -357,7 +357,7 @@ request_thread_main (GnomeCupsRequest *r
 			g_warning ("IPP request %s failed with status %d",
                         ippOpString (request->request->request.op.operation_id), status);
 			if (request->error != NULL)
-				*(request->error) = g_error_new (GNOME_CUPS_ERROR, 
+				*(request->error) = g_error_new_literal (GNOME_CUPS_ERROR, 
 								 status, ippErrorString (status));
 		} else if (request->response && _gnome_cups_debug) {
 			g_print ("response = \n");
@@ -368,7 +368,7 @@ request_thread_main (GnomeCupsRequest *r
 			request->path, request->output_fd);
 		request->response = NULL;
 		if (HTTP_OK != status && request->error != NULL)
-			*(request->error) = g_error_new (GNOME_CUPS_ERROR, 
+			*(request->error) = g_error_new_literal (GNOME_CUPS_ERROR, 
 							 status, httpStatus (status));
 	} else {
 		g_warning ("Neither request nor output_fd set");
@@ -471,7 +471,7 @@ gnome_cups_request_add_requested_attribu
 	ippAddStrings (request, group,
 		       IPP_TAG_NAME | IPP_TAG_COPY,
 		       "requested-attributes",
-		       n_attributes, NULL, attributes);
+		       n_attributes, NULL, (const char* const*)attributes);
 }
 
 typedef struct