2.1.60 lp not working -> patch

Manuel J. Galan (manolow@step.es)
Mon, 27 Oct 1997 13:48:44 +0000 (WET)


---1463811840-1169529124-877960135=:256
Content-Type: MULTIPART/mixed; BOUNDARY="-1463811840-269167349-877960128=:256"

---1463811840-269167349-877960128=:256
Content-Type: TEXT/plain; CHARSET=US-ASCII

When going from 59 -> 60 lp quit working, I attach a patch that seems
to solve that (at least now it prints)

-- 
Manuel J. Galan
manolow@step.es

---1463811840-269167349-877960128=:256 Content-Type: TEXT/plain; CHARSET=US-ASCII Content-Description: lp-60-patch

--- /tmp/lp.c Sat Sep 20 22:51:54 1997 +++ linux/drivers/char/lp.c Mon Oct 27 10:49:02 1997 @@ -272,9 +272,9 @@ return total_bytes_written; } -static long lp_write(struct inode * inode, struct file * file, - const char * buf, unsigned long count) +static ssize_t lp_write(struct file * file, const char * buf, size_t count, loff_t *ppos) { + struct inode *inode = file->f_dentry->d_inode; unsigned int minor = MINOR(inode->i_rdev); int retv; @@ -315,9 +315,9 @@ } /* Status readback confirming to ieee1284 */ -static long lp_read(struct inode * inode, struct file * file, - char * buf, unsigned long count) +static ssize_t lp_read(struct file * file, char * buf, size_t count, loff_t *ppos) { + struct inode *inode = file->f_dentry->d_inode; unsigned char z=0, Byte=0, status; char *temp; int retval;

---1463811840-269167349-877960128=:256-- ---1463811840-1169529124-877960135=:256 Content-Type: APPLICATION/pgp-signature

-----BEGIN PGP MESSAGE----- Version: 2.6.3ia Comment: Requires PGP version 2.6 or later.

iQEVAgUBNFSbwJe77K3TvD29AQEosAgAlhPiw9C4PtpWVcjxlgdOrewYl41XwGbC inuBiXej/3mMA956bOZ+QEw3AdTU0tK4Elfd2uwAxu3huXsYql2GwFKiU+232Gmr Q0veag3tQu4BUHNFzxUSIb6pjGO2rB60Y5OSa0oOBt5wzohjOzMTw0Y4vWW53WZk XKNm8E/mVRmgLzJrCpEMT3nUfMb51EHJ4G18aj/nMog3MnWAzrXSv3W1fJYVktGq RihdnQ8IBwuKCpDTYFx1OOyFMF8jeG/7gpaEO/bVUq/fy/HmWqvzJ6RZBqJO7m6G SV3Zbp8oZFyQFdp08jveqgpiR+wAwTyVDwoL2zF7GmB8eWy1Kdo3eg== =sC0h -----END PGP MESSAGE-----

---1463811840-1169529124-877960135=:256--