From 4c24c7c4a741eaeffc76339f07076cdad7a36c56 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 28 Sep 2013 16:50:07 -0600 Subject: Clean up some naming: fd vs. fildes vs. filedes and filep vs filp --- apps/system/readline/readline.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/system/readline/readline.c') diff --git a/apps/system/readline/readline.c b/apps/system/readline/readline.c index 1fb30e840..5486a68eb 100644 --- a/apps/system/readline/readline.c +++ b/apps/system/readline/readline.c @@ -133,7 +133,7 @@ static inline int readline_rawgetc(int infd) nread = read(infd, &buffer, 1); /* Check for end-of-file. */ - + if (nread == 0) { /* Return EOF on end-of-file */ @@ -186,7 +186,7 @@ static inline void readline_consoleputc(int ch, int outfd) nwritten = write(outfd, &buffer, 1); /* Check for irrecoverable write errors. */ - + if (nwritten < 0 && errno != EINTR) { break; @@ -264,8 +264,8 @@ ssize_t readline(FAR char *buf, int buflen, FILE *instream, FILE *outstream) * standard) */ - infd = instream->fs_filedes; - outfd = outstream->fs_filedes; + infd = instream->fs_fd; + outfd = outstream->fs_fd; /* [K is the VT100 command that erases to the end of the line. */ -- cgit v1.2.3