Fixed warning on 32 bit arch, caused by my fix for 64 bits.
authorFrank Mori Hess <fmhess@speakeasy.net>
Mon, 29 Oct 2007 01:12:57 +0000 (01:12 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Mon, 29 Oct 2007 01:12:57 +0000 (01:12 +0000)
demo/ao_mmap.c

index e9d42b4c8f8a02c243665b5930f78131ab15053f..b29593813543f39e942f08fe45aa336096dbaa8c 100644 (file)
@@ -171,7 +171,7 @@ int main(int argc, char *argv[])
                                comedi_perror("comedi_mark_buffer_written");
                                exit(1);
                        }
-                       printf("marked %li more samples as written\n", bytes_unmarked / sizeof(sampl_t));
+                       printf("marked %lui more samples as written\n", (unsigned long)bytes_unmarked / sizeof(sampl_t));
                }else
                        usleep(10000);
        }