summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-01 13:31:58 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-01 13:31:58 +0000
commiteecacaa024d59dc7cd7c9ff37a017478082b0a89 (patch)
tree4594eba9c91640fcdcc1f43b3fc9418347dbe4d5 /io.c
parentc6dec376494db7886388b34943d4d3550fe99d09 (diff)
* io.c (linux_get_maxfd): change local variable name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/io.c b/io.c
index 07eddd3146..986e4dc084 100644
--- a/io.c
+++ b/io.c
@@ -5162,7 +5162,7 @@ static int
linux_get_maxfd(void)
{
int fd;
- char buf[4096], *p, *n, *e;
+ char buf[4096], *p, *np, *e;
ssize_t ss;
fd = rb_cloexec_open("/proc/self/status", O_RDONLY|O_NOCTTY, 0);
if (fd == -1) return -1;
@@ -5171,16 +5171,16 @@ linux_get_maxfd(void)
p = buf;
e = buf + ss;
while ((int)sizeof("FDSize:\t0\n")-1 <= e-p &&
- (n = memchr(p, '\n', e-p)) != NULL) {
+ (np = memchr(p, '\n', e-p)) != NULL) {
if (memcmp(p, "FDSize:", sizeof("FDSize:")-1) == 0) {
int fdsize;
p += sizeof("FDSize:")-1;
- *n = '\0';
+ *np = '\0';
fdsize = (int)ruby_strtoul(p, (char **)NULL, 10);
close(fd);
return fdsize;
}
- p = n+1;
+ p = np+1;
}
/* fall through */