remove extra lines

This commit is contained in:
Ben Harris 2016-10-26 12:16:05 -04:00
parent 9748b72ca1
commit b319a45e69
1 changed files with 0 additions and 8 deletions

View File

@ -34,12 +34,6 @@ void listdir (const char *name) {
if (entry->d_type == DT_LNK) {
link_cnt++;
printf("[l] %s/%s\n", name, entry->d_name);
// char path[4096];
// int len = snprintf(path, sizeof(path) - 1, "%s/%s", name, entry->d_name);
// path[len] = 0;
// stat(path, &buf);
// space_used += buf.st_blocks;
}
else{
file_cnt++;
@ -50,8 +44,6 @@ void listdir (const char *name) {
space_used += buf.st_blocks;
printf("[f] %lu\t%s/%s\n", buf.st_blocks, name, entry->d_name);
}
}
ht[entry->d_ino] = true;
} while ((entry = readdir(dir)));