From 148cde5e982950ad5836fa96baa466de842e1c14 Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 27 Feb 2007 21:17:21 +0000 Subject: Finally, a clean SDCC compile git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@20 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/lib/lib_fopen.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'nuttx/lib/lib_fopen.c') diff --git a/nuttx/lib/lib_fopen.c b/nuttx/lib/lib_fopen.c index 0a935ddd2..11bce38a2 100644 --- a/nuttx/lib/lib_fopen.c +++ b/nuttx/lib/lib_fopen.c @@ -130,14 +130,14 @@ static int lib_mode2oflags(const char *mode) * Public Functions ************************************************************/ -struct file_struct *lib_fdopen(int fd, const char *mode, - struct filelist *flist, - struct streamlist *slist) +FAR struct file_struct *lib_fdopen(int fd, const char *mode, + FAR struct filelist *flist, + FAR struct streamlist *slist) { - struct inode *inode = flist->fl_files[fd].f_inode; - FILE *stream; - int oflags = lib_mode2oflags(mode); - int i; + FAR struct inode *inode = flist->fl_files[fd].f_inode; + FILE *stream; + int oflags = lib_mode2oflags(mode); + int i; if (fd < 0 || !flist || !slist) { @@ -209,19 +209,19 @@ struct file_struct *lib_fdopen(int fd, const char *mode, FILE *fdopen(int fd, const char *mode) { - struct filelist *flist = sched_getfiles(); - struct streamlist *slist = sched_getstreams(); + FAR struct filelist *flist = sched_getfiles(); + FAR struct streamlist *slist = sched_getstreams(); return lib_fdopen(fd, mode, flist, slist); } FILE *fopen(const char *path, const char *mode) { - struct filelist *flist = sched_getfiles(); - struct streamlist *slist = sched_getstreams(); - int oflags = lib_mode2oflags(mode); - int fd = open(path, oflags, 0666); + FAR struct filelist *flist = sched_getfiles(); + FAR struct streamlist *slist = sched_getstreams(); + int oflags = lib_mode2oflags(mode); + int fd = open(path, oflags, 0666); - FILE *ret = lib_fdopen(fd, mode, flist, slist); + FILE *ret = lib_fdopen(fd, mode, flist, slist); if (!ret) { (void)close(fd); -- cgit v1.2.3