Skip to content

Commit 326cfc4

Browse files
committed
Oops, forgot that bit was C, not C++
1 parent 7ebf692 commit 326cfc4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

stp_support/printerqueues_unix.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,11 @@ static void pqp_dispose(struct pqprivate *pp)
148148
}
149149

150150

151-
static bool pqp_identifyprintsystem(struct pqprivate *pq)
151+
static int pqp_identifyprintsystem(struct pqprivate *pq)
152152
{
153153
#ifdef HAVE_LIBCUPS
154154
pq->printsystem=0;
155-
return(true);
155+
return(1);
156156
#else
157157
int count=sizeof(printsystems)/sizeof(struct PrintSystem);
158158
int i;
@@ -161,11 +161,11 @@ static bool pqp_identifyprintsystem(struct pqprivate *pq)
161161
if (!access(printsystems[i].key_file, R_OK))
162162
{
163163
pq->printsystem=i;
164-
return(true);
164+
return(1);
165165
}
166166
}
167167
#endif
168-
return(false);
168+
return(0);
169169
}
170170

171171

@@ -403,6 +403,7 @@ static char *getppd(struct pqinfo *pq)
403403
char *result=NULL;
404404
#ifdef HAVE_LIBCUPS
405405
const char *ppdname=cupsGetPPD(pq->priv->currentqueue);
406+
406407
if(ppdname)
407408
result=strdup(ppdname);
408409
#endif

0 commit comments

Comments
 (0)