implemented why2_opendir
shit it works no memery lekz LET'S FUCKING GO
This commit is contained in:
parent
bdd947fc64
commit
44941a1b05
@ -59,7 +59,7 @@ why2_log_file why2_init_logger(char *directoryPath)
|
|||||||
}
|
}
|
||||||
|
|
||||||
//COUNT HOW MANY LOGS WERE GENERATED THIS DAY
|
//COUNT HOW MANY LOGS WERE GENERATED THIS DAY
|
||||||
dir = opendir(directoryPath);
|
dir = why2_opendir(directoryPath);
|
||||||
while ((entry = readdir(dir)) != NULL)
|
while ((entry = readdir(dir)) != NULL)
|
||||||
{
|
{
|
||||||
if (entry -> d_type == DT_REG)
|
if (entry -> d_type == DT_REG)
|
||||||
@ -101,7 +101,7 @@ why2_log_file why2_init_logger(char *directoryPath)
|
|||||||
why2_deallocate(dateBuffer);
|
why2_deallocate(dateBuffer);
|
||||||
why2_deallocate(latestBuffer);
|
why2_deallocate(latestBuffer);
|
||||||
why2_deallocate(latestFilePath);
|
why2_deallocate(latestFilePath);
|
||||||
closedir(dir);
|
why2_deallocate(dir);
|
||||||
|
|
||||||
why2_reset_memory_identifier();
|
why2_reset_memory_identifier();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user