]> pd.if.org Git - pdclib/blobdiff - platform/example/functions/_PDCLIB/read.c
Not using typedef'ed types here for added insurance against incompabilities.
[pdclib] / platform / example / functions / _PDCLIB / read.c
index db6418d58b451c68be84a4472694b4cfc5d84d71..2e35cea21fe7b79fe0d06e395581294527792e7f 100644 (file)
@@ -12,8 +12,9 @@
 
 int read(int, void *, unsigned int);
 
-_PDCLIB_size_t _PDCLIB_read( _PDCLIB_fd_t fd, char * buffer, _PDCLIB_size_t n )
+_PDCLIB_size_t _PDCLIB_read( int fd, char * buffer, _PDCLIB_size_t n )
 {
+    /* FIXME: Might return value < n, might return -1 on error */
     return read( fd, buffer, n );
 }