|
|
3f01f7 |
diff --git a/cups/ppd.c b/cups/ppd.c
|
|
|
3f01f7 |
index ff52df2e..199cf034 100644
|
|
|
3f01f7 |
--- a/cups/ppd.c
|
|
|
3f01f7 |
+++ b/cups/ppd.c
|
|
|
3f01f7 |
@@ -1719,8 +1719,7 @@ _ppdOpen(
|
|
|
3f01f7 |
constraint->choice1, constraint->option2,
|
|
|
3f01f7 |
constraint->choice2))
|
|
|
3f01f7 |
{
|
|
|
3f01f7 |
- case 0 : /* Error */
|
|
|
3f01f7 |
- case 1 : /* Error */
|
|
|
3f01f7 |
+ default : /* Error */
|
|
|
3f01f7 |
pg->ppd_status = PPD_BAD_UI_CONSTRAINTS;
|
|
|
3f01f7 |
goto error;
|
|
|
3f01f7 |
|
|
|
3f01f7 |
diff --git a/ppdc/ppdc-source.cxx b/ppdc/ppdc-source.cxx
|
|
|
3f01f7 |
index c25d4966..236c00db 100644
|
|
|
3f01f7 |
--- a/ppdc/ppdc-source.cxx
|
|
|
3f01f7 |
+++ b/ppdc/ppdc-source.cxx
|
|
|
3f01f7 |
@@ -1743,15 +1743,17 @@ ppdcSource::get_resolution(ppdcFile *fp)// I - File to read
|
|
|
3f01f7 |
|
|
|
3f01f7 |
switch (sscanf(name, "%dx%d", &xdpi, &ydpi))
|
|
|
3f01f7 |
{
|
|
|
3f01f7 |
- case 0 :
|
|
|
3f01f7 |
- _cupsLangPrintf(stderr,
|
|
|
3f01f7 |
- _("ppdc: Bad resolution name \"%s\" on line %d of "
|
|
|
3f01f7 |
- "%s."), name, fp->line, fp->filename);
|
|
|
3f01f7 |
- break;
|
|
|
3f01f7 |
case 1 :
|
|
|
3f01f7 |
ydpi = xdpi;
|
|
|
3f01f7 |
break;
|
|
|
3f01f7 |
- }
|
|
|
3f01f7 |
+ case 2 :
|
|
|
3f01f7 |
+ break;
|
|
|
3f01f7 |
+ default :
|
|
|
3f01f7 |
+ _cupsLangPrintf(stderr,
|
|
|
3f01f7 |
+ _("ppdc: Bad resolution name \"%s\" on line %d of "
|
|
|
3f01f7 |
+ "%s."), name, fp->line, fp->filename);
|
|
|
3f01f7 |
+ break;
|
|
|
3f01f7 |
+}
|
|
|
3f01f7 |
|
|
|
3f01f7 |
// Create the necessary PS commands...
|
|
|
3f01f7 |
snprintf(command, sizeof(command),
|