Re: HP PSC 1110, Fedora Core 4, hpoj error messages

Andreas Fester <[email protected]> Mon, 24 Oct 2005 22:29:59 +0200
Newsgroups gmane.linux.drivers.hpofficejet.devel
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Laura Rhian Pickard wrote:
> Thanks.  I'm new to this, how do I apply this patch? 

simply save it to some location, e.g. /tmp
Then change to the directory containing the hpoj sources,
e.g. /tmp/hpoj-0.91 and use the cat(1) and the patch(1)
commands to apply the patch:

$ cat /tmp/patch | patch -p1
patching file lib/hpojip/xjpg_fix.c

Of course, you could also apply this simple patch manually
(the "-" line denotes lines which have been removed, the
"+" lines those which have been added, so effectively the
patch replaces

#define MYLOCATE(p) (void *)(p)=(g->headerBuffer+lenAddedHeader)

with

#define MYLOCATE(p) p=(g->headerBuffer+lenAddedHeader)

), but this becomes more difficult with more complicated
patches of course ;-)

Best Regards,

	Andreas

- --
Andreas Fester
mailto:[email protected]
WWW: http://www.littletux.net
ICQ: 326674288
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDXURHZ3bQVzeW+rsRAl4YAKCJYLDNLXreV2XK10JFybbK8XfpAACcD/X2
3HmsGzuMjOe/LJ8REcbKg9o=
=uaHY
-----END PGP SIGNATURE-----


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information