diff options
| author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-12-10 15:10:57 +0000 |
|---|---|---|
| committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-12-10 15:10:57 +0000 |
| commit | 7fe677c6d31a6fd854eaf64609d72b8613ca36ea (patch) | |
| tree | 4c65df7c08e0730d0686b169545be93177080810 /libc/termios/ttyname.c | |
| parent | eb853014235c86b33318f16e205ff2f818e5a67c (diff) | |
| download | uClibc-alpine-7fe677c6d31a6fd854eaf64609d72b8613ca36ea.tar.bz2 uClibc-alpine-7fe677c6d31a6fd854eaf64609d72b8613ca36ea.tar.xz | |
Merge from trunk.
Diffstat (limited to 'libc/termios/ttyname.c')
| -rw-r--r-- | libc/termios/ttyname.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libc/termios/ttyname.c b/libc/termios/ttyname.c index 43005a63a..aa796c892 100644 --- a/libc/termios/ttyname.c +++ b/libc/termios/ttyname.c @@ -1,3 +1,7 @@ +#define opendir __opendir +#define closedir __closedir +#define isatty __isatty + #include <string.h> #include <errno.h> #include <assert.h> @@ -43,7 +47,7 @@ int attribute_hidden __ttyname_r(int fd, char *ubuf, size_t ubuflen) char *s; DIR *fp; int rv; - int len; + size_t len; char buf[TTYNAME_BUFLEN]; if (fstat(fd, &st) < 0) { |
