summaryrefslogtreecommitdiff
path: root/print/hplip/files/patch-pcard_pcardext_pcardext.c
diff options
context:
space:
mode:
authorDoug Barton <dougb@FreeBSD.org>2006-05-26 23:50:11 +0000
committerDoug Barton <dougb@FreeBSD.org>2006-05-26 23:50:11 +0000
commit9ab82d60d82105cd57c38a2d3d2b00edfb534148 (patch)
tree128cf726daa92cd9ce854d84bb2725df07e1cb8d /print/hplip/files/patch-pcard_pcardext_pcardext.c
parentUpdate portsnap to version 1.1, to reflect three months of development in (diff)
Fix port to work on RELENG_4.
Submitted by: Anish Mistry <amistry@am-productions.biz> (maintainer)
Notes
Notes: svn path=/head/; revision=163558
Diffstat (limited to 'print/hplip/files/patch-pcard_pcardext_pcardext.c')
-rw-r--r--print/hplip/files/patch-pcard_pcardext_pcardext.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/print/hplip/files/patch-pcard_pcardext_pcardext.c b/print/hplip/files/patch-pcard_pcardext_pcardext.c
new file mode 100644
index 000000000000..4c531f92d1f2
--- /dev/null
+++ b/print/hplip/files/patch-pcard_pcardext_pcardext.c
@@ -0,0 +1,29 @@
+--- pcard/pcardext/pcardext.c.orig Tue May 23 15:43:36 2006
++++ pcard/pcardext/pcardext.c Tue May 23 15:44:43 2006
+@@ -80,6 +80,7 @@
+
+ PyObject * pcardext_mount( PyObject * self, PyObject * args )
+ {
++ int i;
+ if( !PyArg_ParseTuple( args, "OO", &readsectorFunc, &writesectorFunc ) )
+ {
+ return Py_BuildValue( "i", 1 );
+@@ -93,7 +94,7 @@
+ Py_INCREF( readsectorFunc );
+ Py_INCREF( writesectorFunc );
+
+- int i = FatInit();
++ i = FatInit();
+ /*char buf[1024];
+ sprintf( buf, "print 'FatInit()=%d\n'", i );
+ PyRun_SimpleString( buf );*/
+@@ -111,8 +112,8 @@
+ PyObject * pcardext_ls( PyObject * self, PyObject * args )
+ {
+ PyObject * file_list;
+- file_list = PyList_New(0);
+ FILE_ATTRIBUTES fa;
++ file_list = PyList_New(0);
+
+ FatDirBegin( &fa );
+