Re: SANE 1.0.1 under DEC UNIX 4.0

Petter Reinholdtsen (pere@hungry.com)
Thu, 11 Nov 1999 09:48:50 +0800

[Christian Lorenz]
> I have downloaded sane-1.0.1 and had to make a few patches to get it
> running under DEC Unix 4.0D. You find the patch attached.

OK. The HP fix must be picked up by the backend maintainer. The
other changes were already in the CVS repository:
<URL:http://www.student.uit.no/~pere/linux/sane/cvs-server.html>.

I only wounder on one of you suggested changes:

diff -ur -C 4 sane-1.0.1/sanei/sanei_scsi.c sane-1.0.1-DU4.0/sanei/sanei_scsi.c
*** sane-1.0.1/sanei/sanei_scsi.c Sat Apr 17 22:18:18 1999
--- sane-1.0.1-DU4.0/sanei/sanei_scsi.c Wed Nov 3 09:30:42 1999
***************
*** 1873,1883 ****
size_t cdb_size;

cdb_size = CDB_SIZE (*(u_char *) src);

- memset (ccb, 0, sizeof (ccb));
+ memset (&ccb, 0, sizeof (ccb));
ccb.cam_ch.my_addr = (CCB_HEADER *) & ccb;
- ccb.cam_ch.cam_ccb_len = sizeof (ccb);
+ ccb.cam_ch.cam_ccb_len = sizeof(CCB_SCSIIO);
ccb.cam_ch.cam_func_code = XPT_SCSI_IO;
ccb.cam_ch.cam_path_id = fd_info[fd].bus;
ccb.cam_ch.cam_target_id = fd_info[fd].target;
ccb.cam_ch.cam_target_lun = fd_info[fd].lun;

Why do you want to change 'sizeof(ccb)' to 'sizeof(CCB_SCSIIO)', when
ccb already is of type CCB_SCSIIO? It seems like duplicating
information, and a complete waste?

Someone else must fix the supported platforms page.

-- 
##>  Petter Reinholdtsen  <##  |  pere@td.org.uit.no

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