summaryrefslogtreecommitdiff
path: root/libc/termios
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-12-10 03:52:54 +0000
committerMike Frysinger <vapier@gentoo.org>2005-12-10 03:52:54 +0000
commit974dfe15ecd9ec2d3c62bc1502a35f2a7f971b30 (patch)
treee394a9fcd808e244726529079e72c56a0ca9b000 /libc/termios
parent5a0c58adc73d0a7553404221da3a717654309944 (diff)
fix a warning
Diffstat (limited to 'libc/termios')
-rw-r--r--libc/termios/ttyname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/termios/ttyname.c b/libc/termios/ttyname.c
index 5a5d2a225..aa796c892 100644
--- a/libc/termios/ttyname.c
+++ b/libc/termios/ttyname.c
@@ -47,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) {