rename store_config_file load_config_file
This commit is contained in:
@@ -33,7 +33,7 @@ void append_received_config_chunk(char *buf, int length)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void store_config_file(char *filename)
|
void load_config_file(char *filename)
|
||||||
{
|
{
|
||||||
int c;
|
int c;
|
||||||
FILE *f = fopen(filename, "r");
|
FILE *f = fopen(filename, "r");
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#define _CONFIG_H_
|
#define _CONFIG_H_
|
||||||
|
|
||||||
void append_received_config_chunk(char *buf, int length);
|
void append_received_config_chunk(char *buf, int length);
|
||||||
void store_config_file(char *filename);
|
void load_config_file(char *filename);
|
||||||
void verify_config(void);
|
void verify_config(void);
|
||||||
|
|
||||||
#endif /* _CONFIG_H_ */
|
#endif /* _CONFIG_H_ */
|
||||||
|
|||||||
@@ -279,7 +279,7 @@ int main(int n, char **v)
|
|||||||
|
|
||||||
database = parse_database(database_filename);
|
database = parse_database(database_filename);
|
||||||
|
|
||||||
store_config_file(database_filename);
|
load_config_file(database_filename);
|
||||||
|
|
||||||
number_of_events = number_of_ids(database);
|
number_of_events = number_of_ids(database);
|
||||||
is_on = calloc(number_of_events, sizeof(int));
|
is_on = calloc(number_of_events, sizeof(int));
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ int main(int n, char **v)
|
|||||||
|
|
||||||
database = parse_database(database_filename);
|
database = parse_database(database_filename);
|
||||||
|
|
||||||
store_config_file(database_filename);
|
load_config_file(database_filename);
|
||||||
|
|
||||||
number_of_events = number_of_ids(database);
|
number_of_events = number_of_ids(database);
|
||||||
is_on = calloc(number_of_events, sizeof(int));
|
is_on = calloc(number_of_events, sizeof(int));
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ int main(int n, char **v)
|
|||||||
|
|
||||||
database = parse_database(database_filename);
|
database = parse_database(database_filename);
|
||||||
|
|
||||||
store_config_file(database_filename);
|
load_config_file(database_filename);
|
||||||
|
|
||||||
number_of_events = number_of_ids(database);
|
number_of_events = number_of_ids(database);
|
||||||
is_on = calloc(number_of_events, sizeof(int));
|
is_on = calloc(number_of_events, sizeof(int));
|
||||||
|
|||||||
Reference in New Issue
Block a user