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.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5302 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2008-07-14 16:21:48 +00:00
1 parent a03f51bbcb
commit 9fcfb654af
4 files changed
+11 -10

No files matched your search

+3 -3
View File
@@ -158,7 +158,7 @@ set_statement: SET function_name expression
if (!current_chip) {
sensors_yyerror("Set statement before first chip statement");
free($2);
free_expr($3);
sensors_free_expr($3);
YYERROR;
}
new_el.lineno = $1;
@@ -173,8 +173,8 @@ compute_statement: COMPUTE function_name expression ',' expression
if (!current_chip) {
sensors_yyerror("Compute statement before first chip statement");
free($2);
free_expr($3);
free_expr($5);
sensors_free_expr($3);
sensors_free_expr($5);
YYERROR;
}
new_el.lineno = $1;