From debdb8399933e964841159060ced986f3015f79d Mon Sep 17 00:00:00 2001 From: Seppia Date: Wed, 31 Jan 2018 13:37:12 +0100 Subject: Complete integer types declarations change Chages some 'long' variable declarations left to 'int64_t'. --- src/onetimebluh.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/onetimebluh.c b/src/onetimebluh.c index c282c1a..9d65c70 100644 --- a/src/onetimebluh.c +++ b/src/onetimebluh.c @@ -184,8 +184,8 @@ void xor (int64_t ed, char* mess, char* keyf, char* outp) { FILE* keyx = fopen (keyf, "r+"); FILE* critt = fopen (outp, "w"); - long mess_size; - long pad_size; + int64_t mess_size; + int64_t pad_size; fseek (mex, 0L, SEEK_END); mess_size = ftell (mex); @@ -196,7 +196,7 @@ void xor (int64_t ed, char* mess, char* keyf, char* outp) { char* bytes = malloc (mess_size); - long i; + int64_t i; char a, b; for (i = 0; i < mess_size; i ++) { @@ -210,7 +210,7 @@ void xor (int64_t ed, char* mess, char* keyf, char* outp) { if (ed == 'f' || ed == 's') { ftruncate (fileno (keyx), (pad_size - mess_size)); fseek (keyx, 0L, SEEK_END); - long new_pad_size = ftell (keyx); + int64_t new_pad_size = ftell (keyx); printf ("Your pad is now %li bytes shorter \n", mess_size); printf ("You now have %li bytes left \n", new_pad_size); } @@ -294,7 +294,7 @@ void bluh (int64_t c, char* mess, char* outp, char* ch) { FILE* mex = fopen (mess, "r"); FILE* bluh = fopen (outp, "w"); - long len; + int64_t len; fseek (mex, 0L, SEEK_END); len = ftell (mex); -- cgit v1.2.3