diff options
author | Nicola Vitale <nivit@FreeBSD.org> | 2007-01-25 14:26:46 +0000 |
---|---|---|
committer | Nicola Vitale <nivit@FreeBSD.org> | 2007-01-25 14:26:46 +0000 |
commit | 9a885c614bacb1567aba6144e29667d045d6dcf6 (patch) | |
tree | 9f67ab795532193068b438fe7237500346e3c4c8 /print/hplip/files/patch-prnt_cupsext_cupsext.c | |
parent | Update to 1.19 (diff) |
- Added files/ patch-api_model.c, patch-prnt_hpijs_configure
- Fixed OPTIONS usage (ports/108103) and PREFIX problem
- Removed files/ patch-backend_hp_hp.c, patch-scan_sane_hpaio.c,
patch-scan_sane.c
- Updated to 1.6.12
PR: ports/108278
Submitted by: Anish Minstry <aminstry at am-productions.biz> (maintainer)
Approved by: alexbl (mentor, implicit)
Diffstat (limited to 'print/hplip/files/patch-prnt_cupsext_cupsext.c')
-rw-r--r-- | print/hplip/files/patch-prnt_cupsext_cupsext.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/print/hplip/files/patch-prnt_cupsext_cupsext.c b/print/hplip/files/patch-prnt_cupsext_cupsext.c index 02351d5d2a7c..685db5bee2ca 100644 --- a/print/hplip/files/patch-prnt_cupsext_cupsext.c +++ b/print/hplip/files/patch-prnt_cupsext_cupsext.c @@ -1,6 +1,6 @@ ---- prnt/cupsext/cupsext.c.orig Tue May 23 15:45:57 2006 -+++ prnt/cupsext/cupsext.c Tue May 23 15:49:34 2006 -@@ -253,11 +253,23 @@ +--- prnt/cupsext/cupsext.c.orig Thu Sep 14 12:51:40 2006 ++++ prnt/cupsext/cupsext.c Wed Oct 18 00:39:28 2006 +@@ -259,11 +259,23 @@ PyObject * getPrinters( PyObject * self, PyObject * args ) { @@ -24,16 +24,16 @@ cups_lang_t * language; static const char * attrs[] = /* Requested attributes */ { -@@ -300,7 +312,7 @@ +@@ -306,7 +318,7 @@ goto abort; } -- int max_count = 0; +- Py_ssize_t max_count = 0; + max_count = 0; - for ( attr = ippFindAttribute(response, "printer-name", IPP_TAG_NAME), + for (attr = ippFindAttribute(response, "printer-name", IPP_TAG_NAME), max_count = 0; -@@ -311,16 +323,7 @@ +@@ -317,16 +329,7 @@ printer_list = PyList_New( max_count ); @@ -51,7 +51,7 @@ for (attr = response->attrs; attr != NULL; attr = attr->next) { -@@ -392,7 +395,6 @@ +@@ -398,7 +401,6 @@ continue; } @@ -59,7 +59,7 @@ printer = (printer_Object *)_newPrinter( device_uri, name, printer_uri, location, make_model, info, state/*, ppd_name*/ ); PyList_SET_ITEM( printer_list, i, (PyObject *)printer ); -@@ -925,13 +927,13 @@ +@@ -935,13 +937,13 @@ PyObject * getPPD( PyObject * self, PyObject * args ) { char * printer; @@ -74,7 +74,7 @@ ppd = cupsGetPPD( (const char *)printer ); return Py_BuildValue( "s", ppd ); -@@ -941,16 +943,16 @@ +@@ -951,16 +953,16 @@ PyObject * getPPDOption( PyObject * self, PyObject * args ) { |