From 73e65a75915dcfd78dbb1dc95958ff9e349c05f7 Mon Sep 17 00:00:00 2001 From: Nicolas Pennequin Date: Fri, 3 Aug 2007 16:53:32 +0200 Subject: [PATCH] The data_len struct member isn't needed --- testplugin.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/testplugin.c b/testplugin.c index 13b8d3e..3ab88d4 100644 --- a/testplugin.c +++ b/testplugin.c @@ -59,7 +59,6 @@ struct memory_handle { char path[MAX_PATH]; int fd; size_t data; /* Start index of the handle's data buffer */ - size_t data_len; /* Length of the data buffer for the handle */ size_t ridx; /* Current read pointer, relative to the main buffer */ size_t widx; /* Current write pointer */ size_t filesize; /* File total length */ @@ -420,7 +419,6 @@ int bufopen(char *file, size_t offset) h->ridx = buf_widx; h->widx = buf_widx; h->data = buf_widx; - h->data_len = size; h->available = 0; DEBUGF("allocated %ld bytes. ID: %d\n", size, h->id); -- 2.11.4.GIT