You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.2 KiB
43 lines
1.2 KiB
2 years ago
|
diff --git a/cups/ppd.c b/cups/ppd.c
|
||
|
index ff52df2e..199cf034 100644
|
||
|
--- a/cups/ppd.c
|
||
|
+++ b/cups/ppd.c
|
||
|
@@ -1719,8 +1719,7 @@ _ppdOpen(
|
||
|
constraint->choice1, constraint->option2,
|
||
|
constraint->choice2))
|
||
|
{
|
||
|
- case 0 : /* Error */
|
||
|
- case 1 : /* Error */
|
||
|
+ default : /* Error */
|
||
|
pg->ppd_status = PPD_BAD_UI_CONSTRAINTS;
|
||
|
goto error;
|
||
|
|
||
|
diff --git a/ppdc/ppdc-source.cxx b/ppdc/ppdc-source.cxx
|
||
|
index c25d4966..236c00db 100644
|
||
|
--- a/ppdc/ppdc-source.cxx
|
||
|
+++ b/ppdc/ppdc-source.cxx
|
||
|
@@ -1743,15 +1743,17 @@ ppdcSource::get_resolution(ppdcFile *fp)// I - File to read
|
||
|
|
||
|
switch (sscanf(name, "%dx%d", &xdpi, &ydpi))
|
||
|
{
|
||
|
- case 0 :
|
||
|
- _cupsLangPrintf(stderr,
|
||
|
- _("ppdc: Bad resolution name \"%s\" on line %d of "
|
||
|
- "%s."), name, fp->line, fp->filename);
|
||
|
- break;
|
||
|
case 1 :
|
||
|
ydpi = xdpi;
|
||
|
break;
|
||
|
- }
|
||
|
+ case 2 :
|
||
|
+ break;
|
||
|
+ default :
|
||
|
+ _cupsLangPrintf(stderr,
|
||
|
+ _("ppdc: Bad resolution name \"%s\" on line %d of "
|
||
|
+ "%s."), name, fp->line, fp->filename);
|
||
|
+ break;
|
||
|
+}
|
||
|
|
||
|
// Create the necessary PS commands...
|
||
|
snprintf(command, sizeof(command),
|