Change Details
src/menu.cpp |
81 | 81 | |
82 | 82 | #ifdef HAVE_LIBOPK |
83 | 83 | { |
84 | | struct dirent *dptr; |
85 | 84 | DIR *dirp = opendir(CARD_ROOT); |
86 | 85 | if (dirp) { |
| 86 | struct dirent *dptr; |
87 | 87 | while ((dptr = readdir(dirp))) { |
88 | 88 | if (dptr->d_type != DT_DIR) |
89 | 89 | continue; |
... | ... | |
108 | 108 | |
109 | 109 | void Menu::readSections(std::string const& parentDir) |
110 | 110 | { |
111 | | DIR *dirp; |
112 | | struct dirent *dptr; |
113 | | |
114 | | dirp = opendir(parentDir.c_str()); |
| 111 | DIR *dirp = opendir(parentDir.c_str()); |
115 | 112 | if (!dirp) return; |
116 | 113 | |
| 114 | struct dirent *dptr; |
117 | 115 | while ((dptr = readdir(dirp))) { |
118 | 116 | if (dptr->d_name[0] != '.' && dptr->d_type == DT_DIR) { |
119 | 117 | // Create section if it doesn't exist yet. |
Download the corresponding diff file