Another little fix for last commit
This commit is contained in:
parent
d0597d5909
commit
3648b00e16
1 changed files with 1 additions and 3 deletions
|
@ -406,7 +406,6 @@ void get_info()
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#ifndef __FREEBSD__
|
|
||||||
while (fgets(line, sizeof(line), cpuinfo))
|
while (fgets(line, sizeof(line), cpuinfo))
|
||||||
#ifdef __FREEBSD__
|
#ifdef __FREEBSD__
|
||||||
if (sscanf(line, "hw.model: %[^\n]", cpu_model))
|
if (sscanf(line, "hw.model: %[^\n]", cpu_model))
|
||||||
|
@ -415,7 +414,6 @@ void get_info()
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
sprintf(user, "%s", getenv("USER"));
|
sprintf(user, "%s", getenv("USER"));
|
||||||
#endif
|
|
||||||
if (iscygwin == 0)
|
if (iscygwin == 0)
|
||||||
fclose(os_release);
|
fclose(os_release);
|
||||||
}
|
}
|
||||||
|
@ -1058,4 +1056,4 @@ void remove_brackets(char *str)
|
||||||
else
|
else
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue