]> git.saurik.com Git - apt.git/commitdiff
fix 'comparison between signed and unsigned integer expressions' warning
authorDavid Kalnischkies <kalnischkies@gmail.com>
Wed, 17 Aug 2011 12:41:02 +0000 (14:41 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Wed, 17 Aug 2011 12:41:02 +0000 (14:41 +0200)
in the udevcdrom testcase

test/interactive-helper/test_udevcdrom.cc

index 577e2d013c35d363e72493eef6b248b613e29fb2..dc25ab357d16311421fc8d9e3b712f5249536937 100644 (file)
@@ -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;