fixed typos
This commit is contained in:
parent
b83902efb9
commit
e6160e1664
|
@ -187,9 +187,9 @@ int main(int argc, char** argv){
|
||||||
char* char_temperature = malloc(sizeof(char) * 8);
|
char* char_temperature = malloc(sizeof(char) * 8);
|
||||||
getfilec(curtempfile, char_temperature);
|
getfilec(curtempfile, char_temperature);
|
||||||
newlinetonullbyte(char_temperature);
|
newlinetonullbyte(char_temperature);
|
||||||
int temperature = stringtoint(temperature, stringlength(temperature));
|
int temperature = stringtoint(char_temperature, stringlength(char_temperature));
|
||||||
/* check if current temp is higher than max and step down */
|
/* check if current temp is higher than max and step down */
|
||||||
if (tempreature >= maxtemp && curstep < stepc - 1){
|
if (temperature >= maxtemp && curstep < stepc - 1){
|
||||||
curstep++;
|
curstep++;
|
||||||
curmaxfile = fopen(MAXSPDPATH, "w");
|
curmaxfile = fopen(MAXSPDPATH, "w");
|
||||||
if (curmaxfile == NULL){
|
if (curmaxfile == NULL){
|
||||||
|
|
Loading…
Reference in New Issue