1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-15 12:29:35 +00:00

Clean end-of-line output usage (not actually POSIX)

This commit is contained in:
Unix-Ninja 2016-06-24 18:08:02 -04:00
parent 78a819417b
commit fce2363fec
2 changed files with 7 additions and 9 deletions

View File

@ -6,6 +6,12 @@
#ifndef TYPES_H
#define TYPES_H
#ifdef _WIN
#define EOL "\r\n"
#else
#define EOL "\n"
#endif
typedef struct
{
uint salt_buf[16];

View File

@ -907,15 +907,7 @@ void status_display_machine_readable ()
* flush
*/
#ifdef _WIN
fputc ('\r', out);
fputc ('\n', out);
#endif
#ifdef _POSIX
fputc ('\n', out);
#endif
fputs (EOL, out);
fflush (out);
}