fixed some (minor) warnings

This commit is contained in:
Markus Fröschle
2013-04-17 05:24:57 +00:00
parent a3c31dff28
commit 460bfeaa8f
3 changed files with 171 additions and 151 deletions

View File

@@ -12,18 +12,19 @@
#include <inttypes.h>
typedef struct {
char * buf;
int head;
int tail;
int size;
typedef struct
{
char * buf;
int head;
int tail;
int size;
} fifo_t;
void fifo_init(fifo_t*,char*,int);
void fifo_advance(fifo_t*,int*);
void fifo_init(fifo_t*, char*, int);
void fifo_advance(fifo_t*, int*);
uint8_t fifo_get(fifo_t*);
void fifo_put(fifo_t*,uint8_t);
void fifo_put(fifo_t*, uint8_t);
void fifo_clear(fifo_t*);
@@ -33,7 +34,7 @@ int fifo_unused(fifo_t*);
int fifo_full(fifo_t*);
int fifo_empty(fifo_t*);
int fifo_read(fifo_t*,char *,int);
int fifo_write(fifo_t*,const char*,int);
int fifo_read(fifo_t*, unsigned char *, int);
int fifo_write(fifo_t*, const unsigned char*, int);
#endif