File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -148,11 +148,11 @@ static void pqp_dispose(struct pqprivate *pp)
148
148
}
149
149
150
150
151
- static bool pqp_identifyprintsystem (struct pqprivate * pq )
151
+ static int pqp_identifyprintsystem (struct pqprivate * pq )
152
152
{
153
153
#ifdef HAVE_LIBCUPS
154
154
pq -> printsystem = 0 ;
155
- return (true );
155
+ return (1 );
156
156
#else
157
157
int count = sizeof (printsystems )/sizeof (struct PrintSystem );
158
158
int i ;
@@ -161,11 +161,11 @@ static bool pqp_identifyprintsystem(struct pqprivate *pq)
161
161
if (!access (printsystems [i ].key_file , R_OK ))
162
162
{
163
163
pq -> printsystem = i ;
164
- return (true );
164
+ return (1 );
165
165
}
166
166
}
167
167
#endif
168
- return (false );
168
+ return (0 );
169
169
}
170
170
171
171
@@ -403,6 +403,7 @@ static char *getppd(struct pqinfo *pq)
403
403
char * result = NULL ;
404
404
#ifdef HAVE_LIBCUPS
405
405
const char * ppdname = cupsGetPPD (pq -> priv -> currentqueue );
406
+
406
407
if (ppdname )
407
408
result = strdup (ppdname );
408
409
#endif
You can’t perform that action at this time.
0 commit comments