mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-24 20:21:43 +00:00
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:
1 parent
a03f51bbcb
commit
9fcfb654af
4 files changed
+11
-10
No files matched your search
+3
-3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user