Commit 48fcfe8b by Michael Pastushkov

x

parent 45b36615
...@@ -147,11 +147,11 @@ int encode(unsigned char* buf, int len) { ...@@ -147,11 +147,11 @@ int encode(unsigned char* buf, int len) {
update_cipher(); update_cipher();
for (i=0; i<len; i++) for (i=0; i<len; i++)
buf[i] = cipher[buf[i]]; buf[i] = cipher[buf[i]];
if (options.log) { // if (options.log) {
printf("\r%-50s", " "); // printf("\r%-50s", " ");
printf("\r%s encode %i bytes ", get_current_timestamp(), len); // printf("\r%s encode %i bytes ", get_current_timestamp(), len);
fflush(stdout); // fflush(stdout);
} // }
return 0; return 0;
} }
...@@ -168,11 +168,11 @@ int decode(unsigned char* buf, int len) { ...@@ -168,11 +168,11 @@ int decode(unsigned char* buf, int len) {
} }
} }
} }
if (options.log) { // if (options.log) {
printf("\r%-50s", " "); // printf("\r%-50s", " ");
printf("\r%s decode %i bytes ", get_current_timestamp(), len); // printf("\r%s decode %i bytes ", get_current_timestamp(), len);
fflush(stdout); // fflush(stdout);
} // }
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment