Perform factor reduction as a modular step
[lttv.git] / lttv / lttv / sync / data_structures.c
index c0dafb07814fd2ece75f3fdabca6ab529f359849..79b8963d61427d83b48a2feebb2051c471a2322b 100644 (file)
@@ -699,7 +699,6 @@ AllFactors* createAllFactors(const unsigned int traceNb)
        unsigned int i, j;
 
        allFactors= malloc(sizeof(AllFactors));
-       allFactors->traceNb= traceNb;
        allFactors->refCount= 1;
        allFactors->pairFactors= malloc(traceNb * sizeof(PairFactors*));
        factorsArray=allFactors->pairFactors;
@@ -731,13 +730,12 @@ AllFactors* createAllFactors(const unsigned int traceNb)
  * Free a container of PairFactors
  *
  * Args:
- *   traceNb:      number of traces
  *   allFactors:   container of PairFactors
+ *   traceNb:      number of traces
  */
-void freeAllFactors(AllFactors* const allFactors)
+void freeAllFactors(AllFactors* const allFactors, const unsigned int traceNb)
 {
        unsigned int i, j;
-       const unsigned int traceNb= allFactors->traceNb;
 
        allFactors->refCount--;
 
This page took 0.024811 seconds and 4 git commands to generate.