rand command, beginning netcfg, consolidated some .c files

This commit is contained in:
joonicks
2018-04-14 02:52:08 +02:00
parent 3bd6854e09
commit bce8bcbfc7
25 changed files with 763 additions and 612 deletions

View File

@@ -96,7 +96,6 @@ int parse_proc_status(char *line)
return(FALSE);
}
char *cpufrom;
int sentmodel;
int physid,cpus,cores,addsiblings;
@@ -146,7 +145,7 @@ int parse_proc_cpuinfo(char *line)
#ifdef DEBUG
debug("(parse_proc_cpuinfo) model name = %s\n",omni);
#endif
to_user_q(cpufrom,"Cpu: %s\n",omni);
to_user_q(global_from,"Cpu: %s\n",omni);
sentmodel++;
}
else
@@ -237,8 +236,7 @@ void do_cpuinfo(COMMAND_ARGS)
return;
#endif
debug("%s\n",from);
cpufrom = from;
global_from = from;
sentmodel = 0;
physid = -1;
cpus = cores = addsiblings = 0;