We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84804ce commit fdec4daCopy full SHA for fdec4da
1 file changed
src/utilities/utilities.c
@@ -83,14 +83,14 @@ void help() {
83
printf("\033[1;36m========================================\033[0m\n\n");
84
};
85
86
-void set_hostname(const SystemSummary *_s) {
+void set_hostname(SystemSummary *_s) {
87
char name[256];
88
if (gethostname(name, sizeof(name)) == 0) {
89
strncpy(_s->hostname, name, sizeof(name) - 1);
90
}
91
92
93
-void set_cpu_model(const SystemSummary *_s) {
+void set_cpu_model(SystemSummary *_s) {
94
FILE *f = fopen("/proc/cpuinfo", "r");
95
char line[256];
96
if (!f) return;
0 commit comments