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 @@ ...@@ -61,8 +61,8 @@
#endif #endif
int calc_delay; int calc_delay = 100;
char calc_smfs; char calc_smfs = 0;
struct { struct {
char err; /* 1/0, error or not */ char err; /* 1/0, error or not */
......
...@@ -80,8 +80,6 @@ void argv_parse(int argc, char **argv, char *dir) { ...@@ -80,8 +80,6 @@ void argv_parse(int argc, char **argv, char *dir) {
/* load defaults */ /* load defaults */
memset(dir, 0, PATH_MAX); memset(dir, 0, PATH_MAX);
getcwd(dir, PATH_MAX); getcwd(dir, PATH_MAX);
calc_delay = 100;
calc_smfs = 0;
/* read from commandline */ /* read from commandline */
for(i=1; i<argc; i++) { 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