Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

detection.c: Clarified some commenting

  • Loading branch information...
commit 08375c44604c68de2b1fff285047900b41f146bf 1 parent 89e9577
@TacoSteemers authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 code/detection.c
View
8 code/detection.c
@@ -32,19 +32,19 @@ void doCheck(void)
initializeRun();
directory = openDirOrHang(dirToCheck);
+ /* Proccess each partition related to a device name in /sys/block/,
+ that starts with "sd"*/
do
- { /* Proccess each item in /sys/block/ */
+ {
if ((entry = readdir(directory)) == NULL)
continue;
if(entry->d_name[0]!='s' || entry->d_name[1]!='d')
continue;
- /* sda3, sdb1, sdc5, ... */
- /* We will now check via /proc/mounts
- which partitions have been mounted */
sprintf(devicePath, "/dev/%s", entry->d_name);
count = 0;
findMountedPartitions(partitions, pCount, devicePath);
+
int i;
for(i = 0; i < count; i++)
{
Please sign in to comment.
Something went wrong with that request. Please try again.