Skip to content
Snippets Groups Projects
Commit 372f6985 authored by Yorhel's avatar Yorhel
Browse files

Initialize calc_delay and calc_smfs in calc.c rather than main.c

parent ca110833
No related branches found
No related tags found
No related merge requests found
......@@ -61,8 +61,8 @@
#endif
int calc_delay;
char calc_smfs;
int calc_delay = 100;
char calc_smfs = 0;
struct {
char err; /* 1/0, error or not */
......
......@@ -80,8 +80,6 @@ void argv_parse(int argc, char **argv, char *dir) {
/* load defaults */
memset(dir, 0, PATH_MAX);
getcwd(dir, PATH_MAX);
calc_delay = 100;
calc_smfs = 0;
/* read from commandline */
for(i=1; i<argc; i++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment