summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2011-08-17 14:41:02 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2011-08-17 14:41:02 +0200
commit59f9dcbdf23ae430c2f5fa4bc85596347e73526f (patch)
treed9a46f0e8e5bc715fbe6ace85fe4f5c07776f1b1 /test
parent682a3bf727cd79a66eeb335c4c6593472ce11907 (diff)
fix 'comparison between signed and unsigned integer expressions' warning
in the udevcdrom testcase
Diffstat (limited to 'test')
-rw-r--r--test/interactive-helper/test_udevcdrom.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/interactive-helper/test_udevcdrom.cc b/test/interactive-helper/test_udevcdrom.cc
index 577e2d013..dc25ab357 100644
--- a/test/interactive-helper/test_udevcdrom.cc
+++ b/test/interactive-helper/test_udevcdrom.cc
@@ -4,14 +4,13 @@
int main()
{
- int i;
pkgUdevCdromDevices c;
assert(c.Dlopen());
vector<CdromDevice> l;
l = c.Scan();
assert(l.empty() == false);
- for (i=0;i<l.size();i++)
+ for (size_t i = 0; i < l.size(); ++i)
std::cerr << l[i].DeviceName << " "
<< l[i].Mounted << " "
<< l[i].MountPath << std::endl;