openbsd-ports/print/py-cups/patches/patch-cupsconnection_c
2011-05-04 12:19:31 +00:00

23 lines
752 B
Plaintext

$OpenBSD: patch-cupsconnection_c,v 1.9 2011/05/04 12:19:31 ajacoutot Exp $
--- cupsconnection.c.orig Thu Feb 24 14:04:24 2011
+++ cupsconnection.c Wed May 4 14:18:29 2011
@@ -3599,7 +3599,7 @@ Connection_getPPD3 (Connection *self, PyObject *args,
PyTuple_SetItem (ret, 2, obj);
debugprintf ("<- Connection_getPPD3() = (%d,%ld,%s)\n",
- status, modtime, fname);
+ status, (long)modtime, fname);
return ret;
}
@@ -3658,8 +3658,7 @@ Connection_printTestPage (Connection *self, PyObject *
break;
}
} else {
- const char *const dirs[] = { "/usr/share/cups",
- "/usr/local/share/cups",
+ const char *const dirs[] = { "${LOCALBASE}/share/cups",
NULL };
int found = 0;
int i;