mirror of
https://github.com/hashcat/hashcat.git
synced 2025-07-31 19:08:43 +00:00
Clean end-of-line output usage (not actually POSIX)
This commit is contained in:
parent
78a819417b
commit
fce2363fec
@ -6,6 +6,12 @@
|
|||||||
#ifndef TYPES_H
|
#ifndef TYPES_H
|
||||||
#define TYPES_H
|
#define TYPES_H
|
||||||
|
|
||||||
|
#ifdef _WIN
|
||||||
|
#define EOL "\r\n"
|
||||||
|
#else
|
||||||
|
#define EOL "\n"
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
uint salt_buf[16];
|
uint salt_buf[16];
|
||||||
|
@ -907,15 +907,7 @@ void status_display_machine_readable ()
|
|||||||
* flush
|
* flush
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef _WIN
|
fputs (EOL, out);
|
||||||
fputc ('\r', out);
|
|
||||||
fputc ('\n', out);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef _POSIX
|
|
||||||
fputc ('\n', out);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
fflush (out);
|
fflush (out);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user