Remove global configuration flags
This commit is contained in:
parent
32799a9086
commit
7720beab6e
4 changed files with 2 additions and 6 deletions
2
loop.c
2
loop.c
|
@ -59,7 +59,7 @@
|
|||
|
||||
|
||||
extern char *auth_token;
|
||||
extern int test_dc;
|
||||
int test_dc = 0;
|
||||
int default_dc_num;
|
||||
extern int binlog_enabled;
|
||||
|
||||
|
|
2
main.c
2
main.c
|
@ -89,7 +89,7 @@ char *secret_chat_file_name;
|
|||
char *downloads_directory;
|
||||
char *config_directory;
|
||||
char *binlog_file_name;
|
||||
int binlog_enabled;
|
||||
extern int binlog_enabled;
|
||||
extern int log_level;
|
||||
int log_level = 1;
|
||||
int sync_from_start;
|
||||
|
|
|
@ -71,12 +71,9 @@ long long cur_uploaded_bytes;
|
|||
long long cur_downloading_bytes;
|
||||
long long cur_downloaded_bytes;
|
||||
|
||||
extern int binlog_enabled;
|
||||
extern int sync_from_start;
|
||||
int sync_from_start = 0;
|
||||
|
||||
//int queries_num = 0;
|
||||
|
||||
void telegram_flush_queries (struct telegram *instance) {
|
||||
instance->on_output(instance);
|
||||
}
|
||||
|
|
|
@ -65,7 +65,6 @@ int our_id;
|
|||
int verbosity;
|
||||
|
||||
peer_t *Peers[MAX_PEER_NUM];
|
||||
extern int binlog_enabled;
|
||||
|
||||
|
||||
void fetch_skip_photo (struct mtproto_connection *mtp);
|
||||
|
|
Loading…
Add table
Reference in a new issue