SANE 0.74 patch for HP/UX 10.20

Petter Reinholdtsen (pere@hungry.com)
Mon, 19 Oct 1998 13:34:49 +0200 (METDST)

Here is a patch to get SANE 0.74 to compile on HP/UX. Please include
in latest distribution.

diff -ru src-0.74/backend/apple.c src-0.74-hppa20ux10/backend/apple.c
--- src-0.74/backend/apple.c Tue Jul 21 14:59:29 1998
+++ src-0.74-hppa20ux10/backend/apple.c Fri Oct 16 11:13:43 1998
@@ -1347,6 +1347,7 @@
mode_list[5]=NULL;
break;
default:
+ break;
}


@@ -2532,7 +2533,7 @@
status=sanei_scsi_cmd (s->fd,reserve,sizeof(reserve),0,0);
DBG(IO_MESSAGE,"Reserving... status:= %d\n",status);
}
-#endif RESERVE_RELEASE_HACK
+#endif /* RESERVE_RELEASE_HACK */

status = sanei_scsi_cmd (s->fd, read, sizeof (read),
buf + offset, &size);
@@ -2544,7 +2545,7 @@
status=sanei_scsi_cmd (s->fd,release,sizeof(release),0,0);
DBG(IO_MESSAGE,"Releasing... status:= %d\n",status);
}
-#endif RESERVE_RELEASE_HACK
+#endif /* RESERVE_RELEASE_HACK */


if (Pseudo8bit)
diff -ru src-0.74/backend/snapscan.c src-0.74-hppa20ux10/backend/snapscan.c
--- src-0.74/backend/snapscan.c Tue May 12 06:33:03 1998
+++ src-0.74-hppa20ux10/backend/snapscan.c Fri Oct 16 11:23:19 1998
@@ -1769,8 +1769,7 @@

/* create and initialize the scanner structure */

- (SnapScan_Scanner *) * h =
- (SnapScan_Scanner *) malloc (sizeof (SnapScan_Scanner));
+ * h = (SnapScan_Scanner *) malloc (sizeof (SnapScan_Scanner));
if (!*h)
{
DBG (DL_MAJOR_ERROR, "%s: out of memory creating scanner structure.\n",

-- 
##>  Petter Reinholdtsen <##    | pere@td.org.uit.no
 O-  <SCRIPT Language="Javascript">window.close()</SCRIPT>
http://www.hungry.com/~pere/    | Go Mozilla, go! Go!

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com