Remove global configuration flags

This commit is contained in:
mjentsch 2014-08-22 17:13:25 +02:00
parent 32799a9086
commit 7720beab6e
4 changed files with 2 additions and 6 deletions

2
loop.c
View file

@ -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
View file

@ -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;

View file

@ -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);
}

View file

@ -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);