From bf4a793f51d5feb83132cf1f726b56bb4800fb5d Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Mon, 29 Oct 2007 01:12:57 +0000 Subject: [PATCH] Fixed warning on 32 bit arch, caused by my fix for 64 bits. --- demo/ao_mmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/ao_mmap.c b/demo/ao_mmap.c index e9d42b4..b295938 100644 --- a/demo/ao_mmap.c +++ b/demo/ao_mmap.c @@ -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); }