| 186 | } |
| 187 | |
| 188 | static int |
| 189 | count_mounts (MountInfoLine *line) |
| 190 | { |
| 191 | MountInfoLine *child; |
| 192 | int res = 0; |
| 193 | |
| 194 | if (!line->covered) |
| 195 | res += 1; |
| 196 | |
| 197 | child = line->first_child; |
| 198 | while (child != NULL) |
| 199 | { |
| 200 | res += count_mounts (child); |
| 201 | child = child->next_sibling; |
| 202 | } |
| 203 | |
| 204 | return res; |
| 205 | } |
| 206 | |
| 207 | static MountInfo * |
| 208 | collect_mounts (MountInfo *info, MountInfoLine *line) |