summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeppia <seppia@seppia.net>2018-01-31 13:37:12 +0100
committerSeppia <seppia@seppia.net>2018-01-31 13:37:12 +0100
commitdebdb8399933e964841159060ced986f3015f79d (patch)
tree5589aa23955aad19a2bdc2d4055e86d3112b792d
parent4a132b0c0a8f2cc808a3c01d5e25f1d0632580d0 (diff)
downloadonetimebluh-debdb8399933e964841159060ced986f3015f79d.tar.gz
onetimebluh-debdb8399933e964841159060ced986f3015f79d.tar.bz2
onetimebluh-debdb8399933e964841159060ced986f3015f79d.zip
Complete integer types declarations changev0.1
Chages some 'long' variable declarations left to 'int64_t'.
-rw-r--r--src/onetimebluh.c10
1 files changed, 5 insertions, 5 deletions
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);