Commit 5f8b743f authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Eliminate unnecessary field size.

parent 041b9bca
...@@ -28,7 +28,6 @@ extern long initial_buffersize; ...@@ -28,7 +28,6 @@ extern long initial_buffersize;
typedef struct typedef struct
{ {
size_t size;
struct dBuffer *db1; struct dBuffer *db1;
struct dBuffer *db2; struct dBuffer *db2;
struct dBuffer *db; struct dBuffer *db;
...@@ -77,15 +76,14 @@ static aFiledataPF *initAFiledataPF ( const char *key, size_t bs) ...@@ -77,15 +76,14 @@ static aFiledataPF *initAFiledataPF ( const char *key, size_t bs)
len = strlen(key); len = strlen(key);
afd = xcalloc(1, sizeof (*afd) + len + 1); afd = xcalloc(1, sizeof (*afd) + len + 1);
strcpy(afd->name, key); strcpy(afd->name, key);
afd->size = bs;
afd->tsID = 0; afd->tsID = 0;
/* init output buffer */ /* init output buffer */
xdebug ( " name=%s, init output buffer", afd->name ); xdebug ( " name=%s, init output buffer", afd->name );
iret = dbuffer_init ( &( afd->db1 ), afd->size ); iret = dbuffer_init(&(afd->db1), bs);
iret += dbuffer_init ( &( afd->db2 ), afd->size ); iret += dbuffer_init(&(afd->db2), bs);
if ( iret > 0 ) if ( iret > 0 )
xabort("dbuffer_init did not succeed"); xabort("dbuffer_init did not succeed");
......
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