--- cndrvcups-common-1.30.orig/cngplp/cngplpmod/cngplpmod.c 2006-09-05 15:30:50.000000000 +0200 +++ cndrvcups-common-1.30.orig/cngplp/cngplpmod/cngplpmod.c 2006-09-05 15:35:30.000000000 +0200 @@ -393,7 +393,7 @@ int CreatePPDOptions(cngplpData *data) { - (const char *)data->ppdfile = cupsGetPPD(data->curr_printer); + data->ppdfile = (char * ) cupsGetPPD(data->curr_printer); memset(data->ppd_opt, 0, sizeof(PPDOptions)); --- cndrvcups-common-1.30.orig/cngplp/cngplpmod/ppdoptions.c 2006-09-05 15:30:50.000000000 +0200 +++ cndrvcups-common-1.30.orig/cngplp/cngplpmod/ppdoptions.c 2006-09-05 15:39:59.000000000 +0200 @@ -402,7 +402,7 @@ for(i = 0; i < list->num_uiconst - 1; i++){ tmp = (UIConstList *)tmp->next; } - (UIConstList *)tmp->next = uiconst; + tmp->next = uiconst; } list->num_uiconst++; }else{ @@ -415,7 +415,7 @@ for(i = 0; i < items->num_uiconst - 1; i++){ tmp = (UIConstList *)tmp->next; } - (UIConstList *)tmp->next = uiconst; + tmp->next = uiconst; } items->num_uiconst++; } @@ -493,7 +493,7 @@ for (i = 0; i < num_list - 2; i++){ tmp = (UIOptionList *)tmp->next; } - (UIOptionList *)tmp->next = option; + tmp->next = option; } return 0; }