diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-09-28 16:50:07 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-09-28 16:50:07 -0600 |
commit | 4c24c7c4a741eaeffc76339f07076cdad7a36c56 (patch) | |
tree | 337a94000f0e849884e81e8ac2ee188bf0a38179 /apps/system/readline/readline.c | |
parent | e735773fe5ea269b43dbecb246cec846b3a0368e (diff) | |
download | nuttx-4c24c7c4a741eaeffc76339f07076cdad7a36c56.tar.gz nuttx-4c24c7c4a741eaeffc76339f07076cdad7a36c56.tar.bz2 nuttx-4c24c7c4a741eaeffc76339f07076cdad7a36c56.zip |
Clean up some naming: fd vs. fildes vs. filedes and filep vs filp
Diffstat (limited to 'apps/system/readline/readline.c')
-rw-r--r-- | apps/system/readline/readline.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; /* <esc>[K is the VT100 command that erases to the end of the line. */ |