Permalink
Browse files

correct function signatures

git-svn-id: https://devkitpro.svn.sourceforge.net/svnroot/devkitpro/trunk/libogc@2839 258c5a1a-4f63-435d-9564-e8f6d34ab52c
  • Loading branch information...
1 parent c29566f commit 48051e70c1e1cf2cf377d57089ce275146a9d3b8 wntrmute committed Nov 23, 2008
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
View
2 libogc/console.c
@@ -432,7 +432,7 @@ static int __console_parse_escsequence(char *pchr)
return(i);
}
-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;
View
2 libogc/console.h
@@ -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;
View
8 lwip/netio.c
@@ -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 48051e7

Please sign in to comment.