changed decrypLogger type to decryptedOutput
cuz length
This commit is contained in:
parent
6e3e05aa0b
commit
e7282dec5a
@ -23,6 +23,6 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
void deallocateLogger(logFile logger); //USE THIS IF YOU WANT TO DEALLOCATE FILE POINTER RETURNED BY logger'S initLogger
|
||||
void deallocateDoublePointer(char **string); //DEALLOCATION OF POINTER-TO-POINTER, WHY TF ARE YOU READING THIS
|
||||
char **decryptLogger(logFile logger); //PASS logger AND FLAGS, AND PROGRAM WILL DECRYPT YOUR LOG... WHAT DID YOU EXPECT?
|
||||
decryptedOutput decryptLogger(logFile logger); //PASS logger AND FLAGS, AND PROGRAM WILL DECRYPT YOUR LOG... WHAT DID YOU EXPECT?
|
||||
|
||||
#endif
|
@ -52,7 +52,7 @@ void deallocateDoublePointer(char **string)
|
||||
free(string); //no
|
||||
}
|
||||
|
||||
char **decryptLogger(logFile logger) //TODO: Fix valgrind issues
|
||||
decryptedOutput decryptLogger(logFile logger) //TODO: Fix valgrind issues
|
||||
{
|
||||
FILE *file = fdopen(logger.file, "r");
|
||||
outputFlags outputBuffer;
|
||||
@ -114,5 +114,9 @@ char **decryptLogger(logFile logger) //TODO: Fix valgrind issues
|
||||
fclose(file);
|
||||
deallocateDoublePointer(content);
|
||||
|
||||
return contentDecrypted;
|
||||
return (decryptedOutput)
|
||||
{
|
||||
contentDecrypted,
|
||||
lines
|
||||
};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user