summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-01-21 19:27:00 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-01-21 19:27:00 +0100
commitbb15efd0202c134e4623a610ffbb73372d43408a (patch)
tree3f2da3516f55727d6cb28f3806960a1e9911f2d9
parenta84ce9284362b3d5a3a3598f43a1ef27e51d7439 (diff)
downloadfastd-bb15efd0202c134e4623a610ffbb73372d43408a.tar
fastd-bb15efd0202c134e4623a610ffbb73372d43408a.zip
Remove unneded calls to method functions in head and tail space calculation
-rw-r--r--src/fastd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fastd.c b/src/fastd.c
index e0351c6..18f9d96 100644
--- a/src/fastd.c
+++ b/src/fastd.c
@@ -395,7 +395,7 @@ static size_t methods_max_packet_size(fastd_context_t *ctx) {
}
static size_t methods_min_encrypt_head_space(fastd_context_t *ctx) {
- size_t ret = ctx->conf->methods[0]->min_encrypt_head_space(ctx);
+ size_t ret = 0;
int i;
for (i = 0; i < MAX_METHODS; i++) {
@@ -411,7 +411,7 @@ static size_t methods_min_encrypt_head_space(fastd_context_t *ctx) {
}
static size_t methods_min_decrypt_head_space(fastd_context_t *ctx) {
- size_t ret = ctx->conf->methods[0]->min_decrypt_head_space(ctx);
+ size_t ret = 0;
int i;
for (i = 0; i < MAX_METHODS; i++) {
@@ -428,7 +428,7 @@ static size_t methods_min_decrypt_head_space(fastd_context_t *ctx) {
}
static size_t methods_min_encrypt_tail_space(fastd_context_t *ctx) {
- size_t ret = ctx->conf->methods[0]->min_encrypt_tail_space(ctx);
+ size_t ret = 0;
int i;
for (i = 0; i < MAX_METHODS; i++) {
@@ -444,7 +444,7 @@ static size_t methods_min_encrypt_tail_space(fastd_context_t *ctx) {
}
static size_t methods_min_decrypt_tail_space(fastd_context_t *ctx) {
- size_t ret = ctx->conf->methods[0]->min_decrypt_tail_space(ctx);
+ size_t ret = 0;
int i;
for (i = 0; i < MAX_METHODS; i++) {