diff light8/parport.c @ 4:f974a462133f

added light8 from the posted light8-1.0.tgz
author drewp
date Sun, 07 Jul 2002 01:16:10 +0000
parents 45b12307c695
children f0e27aa8f0f5
line wrap: on
line diff
--- a/light8/parport.c	Thu Jul 04 10:04:18 2002 +0000
+++ b/light8/parport.c	Sun Jul 07 01:16:10 2002 +0000
@@ -6,15 +6,13 @@
 #include <fcntl.h>
 #include <Python.h>
 
-int getparport() {
+void getparport() {
     if( ioperm(888,3,1) ) {
       printf("Couldn't get parallel port at 888-890\n");
 
       // the following doesn't have any effect!
       PyErr_SetString(PyExc_IOError,"Couldn't get parallel port at 888-890");
-      return 0;
     } 
-    return 1;
 }
 
 void outdata(unsigned char val) {