Show
Ignore:
Timestamp:
07/14/08 18:21:48 (6 years ago)
Author:
khali
Message:

The free_expr() function is no longer static in lib/init.c (it is also
used in lib/conf-parse.y), and therefore must be renamed according to
the libsensors naming conventions.
Based on an original patch from Sergey Vlasov.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-3.0.0/lib/init.c

    r5169 r5302  
    130130} 
    131131 
    132 void free_expr(sensors_expr *expr) 
     132void sensors_free_expr(sensors_expr *expr) 
    133133{ 
    134134        if (expr->kind == sensors_kind_var) 
     
    136136        else if (expr->kind == sensors_kind_sub) { 
    137137                if (expr->data.subexpr.sub1) 
    138                         free_expr(expr->data.subexpr.sub1); 
     138                        sensors_free_expr(expr->data.subexpr.sub1); 
    139139                if (expr->data.subexpr.sub2) 
    140                         free_expr(expr->data.subexpr.sub2); 
     140                        sensors_free_expr(expr->data.subexpr.sub2); 
    141141        } 
    142142        free(expr); 
     
    146146{ 
    147147        free(set->name); 
    148         free_expr(set->value); 
     148        sensors_free_expr(set->value); 
    149149} 
    150150 
     
    152152{ 
    153153        free(compute->name); 
    154         free_expr(compute->from_proc); 
    155         free_expr(compute->to_proc); 
     154        sensors_free_expr(compute->from_proc); 
     155        sensors_free_expr(compute->to_proc); 
    156156} 
    157157