0618c23
commit 7987b0332e6b660ac7992176daeede40cab98390
0618c23
Author: Nils Philippsen <nils@redhat.com>
0618c23
Date:   Tue Jun 16 17:02:49 2009 +0200
0618c23
0618c23
    patch: open-macro
0618c23
    
0618c23
    Squashed commit of the following:
0618c23
    
0618c23
    commit ab8fe801c4f82017988cb44cb79d82d286aa0de4
0618c23
    Author: Nils Philippsen <nils@redhat.com>
0618c23
    Date:   Tue Jun 9 17:57:45 2009 +0200
0618c23
    
0618c23
        don't inadvertently use glibc open() macro
0618c23
0618c23
diff --git a/backend/mustek_pp.c b/backend/mustek_pp.c
0618c23
index 8c3f06a..7e9d094 100644
0618c23
--- a/backend/mustek_pp.c
0618c23
+++ b/backend/mustek_pp.c
0618c23
@@ -1152,7 +1152,7 @@ sane_open (SANE_String_Const devicename, SANE_Handle * handle)
0618c23
 
0618c23
 	}
0618c23
 	
0618c23
-	if ((status = dev->func->open (dev->port, dev->caps, &fd)) != SANE_STATUS_GOOD) {
0618c23
+	if ((status = (dev->func->open) (dev->port, dev->caps, &fd)) != SANE_STATUS_GOOD) {
0618c23
 
0618c23
 		DBG (1, "sane_open: could not open device (%s)\n",
0618c23
 				sane_strstatus (status));
0618c23
diff --git a/backend/pixma_common.c b/backend/pixma_common.c
0618c23
index 2bcb3c1..c5e1e96 100644
0618c23
--- a/backend/pixma_common.c
0618c23
+++ b/backend/pixma_common.c
0618c23
@@ -511,7 +511,7 @@ pixma_open (unsigned devnr, pixma_t ** handle)
0618c23
   strncpy (s->id, pixma_get_device_id (devnr), sizeof (s->id) - 1);
0618c23
   s->ops = s->cfg->ops;
0618c23
   s->scanning = 0;
0618c23
-  error = s->ops->open (s);
0618c23
+  error = (s->ops->open) (s);
0618c23
   if (error < 0)
0618c23
     goto rollback;
0618c23
   error = pixma_deactivate (s->io);
0618c23
diff --git a/backend/plustek_pp.c b/backend/plustek_pp.c
0618c23
index 13d1443..629e238 100644
0618c23
--- a/backend/plustek_pp.c
0618c23
+++ b/backend/plustek_pp.c
0618c23
@@ -258,7 +258,7 @@ static int drvopen(	Plustek_Device *dev )
0618c23
 
0618c23
     DBG( _DBG_INFO, "drvopen()\n" );
0618c23
 
0618c23
-	handle = dev->open((const char*)dev->name, (void *)dev );
0618c23
+	handle = (dev->open)((const char*)dev->name, (void *)dev );
0618c23
 
0618c23
 	tsecs = 0;
0618c23
 
0618c23
diff --git a/sanei/sanei_scsi.c b/sanei/sanei_scsi.c
0618c23
index 69d5859..a594aba 100644
0618c23
--- a/sanei/sanei_scsi.c
0618c23
+++ b/sanei/sanei_scsi.c
0618c23
@@ -5328,7 +5328,7 @@ sanei_scsi_find_devices (const char *findvendor, const char *findmodel,
0618c23
     (*plugInInterface)->Release (plugInInterface);
0618c23
     IOObjectRelease (scsiDevice);
0618c23
 
0618c23
-    ioReturnValue = (*scsiDeviceInterface)->open (scsiDeviceInterface);
0618c23
+    ioReturnValue = ((*scsiDeviceInterface)->open) (scsiDeviceInterface);
0618c23
     if (ioReturnValue != kIOReturnSuccess)
0618c23
       {
0618c23
 	DBG (5, "Error opening SCSI interface (0x%08x)\n", ioReturnValue);