Goodbye to Odr_oct.size
[yaz-moved-to-github.git] / src / zoom-sru.c
index 85f597b..43f05f8 100644 (file)
@@ -331,14 +331,10 @@ static zoom_ret handle_srw_response(ZOOM_connection c,
 
             npr->u.databaseRecord->u.octet_aligned = (Odr_oct *)
                 odr_malloc(c->odr_in, sizeof(Odr_oct));
-            npr->u.databaseRecord->u.octet_aligned->buf = (unsigned char*)
+            npr->u.databaseRecord->u.octet_aligned->buf =
                 sru_rec->recordData_buf;
             npr->u.databaseRecord->u.octet_aligned->len =
                 sru_rec->recordData_len;
-#if OCT_SIZE
-            npr->u.databaseRecord->u.octet_aligned->size =
-                sru_rec->recordData_len;
-#endif
             if (sru_rec->recordSchema
                 && !strcmp(sru_rec->recordSchema,
                            "info:srw/schema/1/diagnostics-v1.1"))