]> git.saurik.com Git - apt.git/blobdiff - test/interactive-helper/test_udevcdrom.cc
trigger the usage of the fallback code for kfreebsd also in the
[apt.git] / test / interactive-helper / test_udevcdrom.cc
index 577e2d013c35d363e72493eef6b248b613e29fb2..88f5f0153324db5ddeeba1a8d6dabb1e0d675e59 100644 (file)
@@ -2,16 +2,18 @@
 #include <stdio.h>
 #include <assert.h>
 
+#include <vector>
+#include <iostream>
+
 int main()
 {
-   int i;
    pkgUdevCdromDevices c;
    assert(c.Dlopen());
 
-   vector<CdromDevice> l;
+   std::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;