Browse files

correct function signatures

  • Loading branch information...
wntrmute committed Nov 23, 2008
1 parent 9e0002b commit 79c19919ca70b05ffa55030493c5ae4d719929a7
Showing with 6 additions and 6 deletions.
  1. +1 −1 libogc/console.c
  2. +1 −1 libogc/console.h
  3. +4 −4 lwip/netio.c
@@ -432,7 +432,7 @@ static int __console_parse_escsequence(char *pchr)
-int __console_write(struct _reent *r,int fd,const char *ptr,int len)
+int __console_write(struct _reent *r,int fd,const char *ptr,size_t len)
int i = 0;
char *tmp = (char*)ptr;
@@ -22,7 +22,7 @@ typedef struct _console_data_s {
unsigned int foreground,background;
} console_data_s;
-extern int __console_write(struct _reent *r,int fd,const char *ptr,int len);
+extern int __console_write(struct _reent *r,int fd,const char *ptr,size_t len);
extern void __console_init(void *framebuffer,int xstart,int ystart,int xres,int yres,int stride);
//extern const devoptab_t dotab_stdout;
@@ -10,8 +10,8 @@ extern int errno;
#include "network.h"
int netio_open(struct _reent *r, void *fileStruct, const char *path,int flags,int mode);
int netio_close(struct _reent *r,int fd);
-int netio_write(struct _reent *r,int fd,const char *ptr,int len);
-int netio_read(struct _reent *r,int fd,char *ptr,int len);
+int netio_write(struct _reent *r,int fd,const char *ptr,size_t len);
+int netio_read(struct _reent *r,int fd,char *ptr,size_t len);
const devoptab_t dotab_stdnet = {
@@ -78,7 +78,7 @@ int netio_close(struct _reent *r,int fd)
return 0;
-int netio_write(struct _reent *r,int fd,const char *ptr,int len)
+int netio_write(struct _reent *r,int fd,const char *ptr,size_t len)
int ret;
@@ -89,7 +89,7 @@ int netio_write(struct _reent *r,int fd,const char *ptr,int len)
return ret;
-int netio_read(struct _reent *r,int fd,char *ptr,int len)
+int netio_read(struct _reent *r,int fd,char *ptr,size_t len)
int ret;

0 comments on commit 79c1991

Please sign in to comment.