fixed error checking that tested for unsigned variables being negative
authorFrank Mori Hess <fmhess@speakeasy.net>
Tue, 2 Apr 2002 19:55:33 +0000 (19:55 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Tue, 2 Apr 2002 19:55:33 +0000 (19:55 +0000)
demo/eeprom_dump.c

index 5403007ac6905f2d13d0498bb7224f63d9fbab70..316866652bc719898511ca5c203d7690bbf12650 100644 (file)
@@ -41,8 +41,8 @@ int main(int argc, char *argv[])
 
 int read_eeprom(comedi_t *it,unsigned int **eeprom)
 {
-       unsigned int subd;
-       unsigned int n,i,ret;
+       int subd;
+       int n,i,ret;
        lsampl_t data;
        unsigned int *ptr;
        lsampl_t maxdata;