Update of /cvsroot/pure-data/externals/zexy/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22234
Modified Files: lpt.c Log Message: cleaned up a bit
Index: lpt.c =================================================================== RCS file: /cvsroot/pure-data/externals/zexy/src/lpt.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** lpt.c 28 Sep 2005 12:18:14 -0000 1.5 --- lpt.c 28 Sep 2005 12:20:37 -0000 1.6 *************** *** 191,198 **** x->port=strtol(devname, 0, 16); if(0==x->port){ - x->port=-1; #ifdef HAVE_PPDEV x->device = open(devname, O_RDWR); ! if(x->device<0){ error("lpt: bad device %s", devname); return(x); --- 191,197 ---- x->port=strtol(devname, 0, 16); if(0==x->port){ #ifdef HAVE_PPDEV x->device = open(devname, O_RDWR); ! if(x->device<=0){ error("lpt: bad device %s", devname); return(x); *************** *** 201,205 **** perror ("PPCLAIM"); close (x->device); ! return(x); } } --- 200,204 ---- perror ("PPCLAIM"); close (x->device); ! x->device=-1; } }