From: bernie Date: Tue, 24 Aug 2004 16:20:48 +0000 (+0000) Subject: ser_read(): Make buffer argument void * for consistency with ANSI C and ser_write() X-Git-Tag: 1.0.0~1081 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=283cd7fa8283bf6b56b43c5ac4ca926fb441095f;p=bertos.git ser_read(): Make buffer argument void * for consistency with ANSI C and ser_write() git-svn-id: https://src.develer.com/svnoss/bertos/trunk@160 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/drv/ser.c b/drv/ser.c index 52e5652e..ed04848f 100755 --- a/drv/ser.c +++ b/drv/ser.c @@ -28,6 +28,9 @@ /* * $Log$ + * Revision 1.13 2004/08/24 16:20:48 bernie + * ser_read(): Make buffer argument void * for consistency with ANSI C and ser_write() + * * Revision 1.12 2004/08/24 13:49:39 bernie * Fix thinko. * @@ -247,7 +250,7 @@ int ser_gets_echo(struct Serial *port, char *buf, int size, bool echo) * \return number of bytes read or EOF in case * of error. */ -int ser_read(struct Serial *port, char *buf, size_t size) +int ser_read(struct Serial *port, void *buf, size_t size) { size_t i = 0; int c; diff --git a/drv/ser.h b/drv/ser.h index 3af458d4..36e833ea 100755 --- a/drv/ser.h +++ b/drv/ser.h @@ -14,6 +14,9 @@ /* * $Log$ + * Revision 1.10 2004/08/24 16:20:48 bernie + * ser_read(): Make buffer argument void * for consistency with ANSI C and ser_write() + * * Revision 1.9 2004/08/15 05:32:22 bernie * ser_resync(): New function. * @@ -166,7 +169,7 @@ extern int ser_getchar(struct Serial *port); extern int ser_getchar_nowait(struct Serial *port); extern int ser_write(struct Serial *port, const void *buf, size_t len); -extern int ser_read(struct Serial *port, char *buf, size_t size); +extern int ser_read(struct Serial *port, void *buf, size_t size); extern int ser_print(struct Serial *port, const char *s); extern int ser_printf(struct Serial *port, const char *format, ...) FORMAT(__printf__, 2, 3);