Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

correct function signatures

git-svn-id: https://devkitpro.svn.sourceforge.net/svnroot/devkitpro/trunk/libogc@2839 258c5a1a-4f63-435d-9564-e8f6d34ab52c
  • Loading branch information...
commit 48051e70c1e1cf2cf377d57089ce275146a9d3b8 1 parent c29566f
wntrmute authored

Showing 3 changed files with 6 additions and 6 deletions. Show diff stats Hide diff stats

  1. +1 1  libogc/console.c
  2. +1 1  libogc/console.h
  3. +4 4 lwip/netio.c
2  libogc/console.c
@@ -432,7 +432,7 @@ static int __console_parse_escsequence(char *pchr)
432 432 return(i);
433 433 }
434 434
435   -int __console_write(struct _reent *r,int fd,const char *ptr,int len)
  435 +int __console_write(struct _reent *r,int fd,const char *ptr,size_t len)
436 436 {
437 437 int i = 0;
438 438 char *tmp = (char*)ptr;
2  libogc/console.h
@@ -22,7 +22,7 @@ typedef struct _console_data_s {
22 22 unsigned int foreground,background;
23 23 } console_data_s;
24 24
25   -extern int __console_write(struct _reent *r,int fd,const char *ptr,int len);
  25 +extern int __console_write(struct _reent *r,int fd,const char *ptr,size_t len);
26 26 extern void __console_init(void *framebuffer,int xstart,int ystart,int xres,int yres,int stride);
27 27
28 28 //extern const devoptab_t dotab_stdout;
8 lwip/netio.c
@@ -10,8 +10,8 @@ extern int errno;
10 10 #include "network.h"
11 11 int netio_open(struct _reent *r, void *fileStruct, const char *path,int flags,int mode);
12 12 int netio_close(struct _reent *r,int fd);
13   -int netio_write(struct _reent *r,int fd,const char *ptr,int len);
14   -int netio_read(struct _reent *r,int fd,char *ptr,int len);
  13 +int netio_write(struct _reent *r,int fd,const char *ptr,size_t len);
  14 +int netio_read(struct _reent *r,int fd,char *ptr,size_t len);
15 15
16 16 //---------------------------------------------------------------------------------
17 17 const devoptab_t dotab_stdnet = {
@@ -78,7 +78,7 @@ int netio_close(struct _reent *r,int fd)
78 78 return 0;
79 79 }
80 80
81   -int netio_write(struct _reent *r,int fd,const char *ptr,int len)
  81 +int netio_write(struct _reent *r,int fd,const char *ptr,size_t len)
82 82 {
83 83 int ret;
84 84
@@ -89,7 +89,7 @@ int netio_write(struct _reent *r,int fd,const char *ptr,int len)
89 89 return ret;
90 90 }
91 91
92   -int netio_read(struct _reent *r,int fd,char *ptr,int len)
  92 +int netio_read(struct _reent *r,int fd,char *ptr,size_t len)
93 93 {
94 94 int ret;
95 95

0 comments on commit 48051e7

Please sign in to comment.
Something went wrong with that request. Please try again.