summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoren[m] <Break@Ocean>2013-09-13 09:16:48 +0200
committerCoren[m] <Break@Ocean>2013-09-13 09:16:48 +0200
commit484615e67d5f40255244546782bb94508f61cb66 (patch)
treeab11e9fff3060e5802034c6090c038f2a14296e6
parentcbd575f7a006877d7b9f9f242eafb0c16c05c0d1 (diff)
Made (load_/save_)data() functions static.
-rw-r--r--testing/nTox.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/testing/nTox.c b/testing/nTox.c
index 178bce2f..9830e95f 100644
--- a/testing/nTox.c
+++ b/testing/nTox.c
@@ -209,7 +209,7 @@ char *format_message(Tox *m, char *message, int friendnum)
209} 209}
210 210
211/* forward declaration */ 211/* forward declaration */
212int save_data(Tox *m); 212static int save_data(Tox *m);
213 213
214void line_eval(Tox *m, char *line) 214void line_eval(Tox *m, char *line)
215{ 215{
@@ -505,7 +505,7 @@ void print_statuschange(Tox *m, int friendnumber, uint8_t *string, uint16_t leng
505 505
506static char *data_file_name = NULL; 506static char *data_file_name = NULL;
507 507
508int load_data(Tox *m) 508static int load_data(Tox *m)
509{ 509{
510 FILE *data_file = fopen(data_file_name, "r"); 510 FILE *data_file = fopen(data_file_name, "r");
511 int size = 0; 511 int size = 0;
@@ -534,7 +534,7 @@ int load_data(Tox *m)
534 return 0; 534 return 0;
535} 535}
536 536
537int save_data(Tox *m) 537static int save_data(Tox *m)
538{ 538{
539 FILE *data_file = fopen(data_file_name, "w"); 539 FILE *data_file = fopen(data_file_name, "w");
540 if (!data_file) { 540 if (!data_file) {
@@ -557,7 +557,7 @@ int save_data(Tox *m)
557 } 557 }
558} 558}
559 559
560int load_old_key_or_save_new_one(Tox *m, char *path) 560static int load_old_key_or_save_new_one(Tox *m, char *path)
561{ 561{
562 data_file_name = path; 562 data_file_name = path;
563 if (load_data(m)) 563 if (load_data(m))