summaryrefslogtreecommitdiff
path: root/src/csv.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/csv.cc')
-rw-r--r--src/csv.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/csv.cc b/src/csv.cc
index 87f37ad1..e32a0b87 100644
--- a/src/csv.cc
+++ b/src/csv.cc
@@ -80,17 +80,17 @@ string csv_reader::read_field(std::istream& sin)
return field;
}
-char * csv_reader::next_line(std::istream& in)
+char * csv_reader::next_line(std::istream& sin)
{
static char linebuf[MAX_LINE + 1];
- while (in.good() && ! in.eof() && in.peek() == '#')
- in.getline(linebuf, MAX_LINE);
+ while (sin.good() && ! sin.eof() && sin.peek() == '#')
+ sin.getline(linebuf, MAX_LINE);
- if (! in.good() || in.eof())
+ if (! sin.good() || sin.eof())
return NULL;
- in.getline(linebuf, MAX_LINE);
+ sin.getline(linebuf, MAX_LINE);
return linebuf;
}