/*
* $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.
*
* \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;
/*
* $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.
*
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);