From 9056bbf801edbf7699249fa545f097ead27acbde Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Wed, 25 Jan 2012 15:50:41 +0100 Subject: [PATCH 1/1] Don't use fixed size integer types in the public header The rationale behind this is that a user of the library is interested in the meaning of the data passed, not on its storage size. --- src/am7xxx.h | 3 +-- src/picoproj.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/am7xxx.h b/src/am7xxx.h index 39e12e3..e30057b 100644 --- a/src/am7xxx.h +++ b/src/am7xxx.h @@ -19,7 +19,6 @@ #ifndef __AM7XXX_H #define __AM7XXX_H -#include #include #ifdef __cplusplus @@ -55,7 +54,7 @@ int am7xxx_send_image(am7xxx_device dev, am7xxx_image_format format, unsigned int width, unsigned int height, - uint8_t *image, + unsigned char *image, unsigned int size); /* diff --git a/src/picoproj.c b/src/picoproj.c index 8d511b9..f8eb5bc 100644 --- a/src/picoproj.c +++ b/src/picoproj.c @@ -54,7 +54,7 @@ int main(int argc, char *argv[]) int format = AM7XXX_IMAGE_FORMAT_JPEG; int width = 800; int height = 480; - uint8_t *image; + unsigned char *image; unsigned int size; unsigned int native_width; unsigned int native_height; -- 2.1.4