Fix incorrect type of Drive container
authorCarl Hetherington <cth@carlh.net>
Thu, 2 Apr 2020 21:35:16 +0000 (23:35 +0200)
committerCarl Hetherington <cth@carlh.net>
Thu, 2 Apr 2020 21:37:43 +0000 (23:37 +0200)
src/lib/cross_osx.cc

index 181b8c74fa4083fa51f037f3f3dffb402d13234d..7197eef792d4cf9c4c3058414c0f8b9225801889 100644 (file)
@@ -243,7 +243,7 @@ disk_appeared(DADiskRef disk, void* context)
 {
        const char* name = DADiskGetBSDName (disk);
        if (name) {
-               list<Drive>* drives = reinterpret_cast<list<Drive>*> (context);
+               vector<Drive>* drives = reinterpret_cast<vector<Drive>*> (context);
                drives->push_back (Drive(name, 0, false, optional<string>(), optional<string>()));
        }
 }