summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-08-19 05:59:15 -0700
committerirungentoo <irungentoo@gmail.com>2013-08-19 05:59:15 -0700
commit7543d6d52867168c0e95729b436ccaa202dd8ffa (patch)
tree7f68fd93e728f7de5f350ad1bc9e4f6a467cd08a
parent4b480381ee7e1b5bbf3c253c0c4bf045e43f0a0e (diff)
parent0aabb5bc49eb86c4168bbf4f369f72fa97d50c53 (diff)
Merge pull request #497 from rose-m/master
Small OS check fix
-rw-r--r--testing/toxic/main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/testing/toxic/main.c b/testing/toxic/main.c
index 3ed2fa5e..9abe8de4 100644
--- a/testing/toxic/main.c
+++ b/testing/toxic/main.c
@@ -77,7 +77,7 @@ static Messenger *init_tox()
77 setname(m, (uint8_t *) "Cool guy", sizeof("Cool guy")); 77 setname(m, (uint8_t *) "Cool guy", sizeof("Cool guy"));
78#elif defined(WIN32) 78#elif defined(WIN32)
79 setname(m, (uint8_t *) "I should install GNU/Linux", sizeof("I should install GNU/Linux")); 79 setname(m, (uint8_t *) "I should install GNU/Linux", sizeof("I should install GNU/Linux"));
80#elif defined(MAC_OSX) 80#elif defined(__APPLE__)
81 setname(m, (uint8_t *) "Hipster", sizeof("Hipster")); //This used to users of other Unixes are hipsters 81 setname(m, (uint8_t *) "Hipster", sizeof("Hipster")); //This used to users of other Unixes are hipsters
82#else 82#else
83 setname(m, (uint8_t *) "Registered Minix user #4", sizeof("Registered Minix user #4")); 83 setname(m, (uint8_t *) "Registered Minix user #4", sizeof("Registered Minix user #4"));
@@ -292,8 +292,6 @@ int main(int argc, char *argv[])
292 if (config_err) { 292 if (config_err) {
293 DATA_FILE = strdup("data"); 293 DATA_FILE = strdup("data");
294 SRVLIST_FILE = strdup("../../other/DHTservers"); 294 SRVLIST_FILE = strdup("../../other/DHTservers");
295
296
297 } else { 295 } else {
298 DATA_FILE = malloc(strlen(user_config_dir) + strlen(CONFIGDIR) + strlen("data") + 1); 296 DATA_FILE = malloc(strlen(user_config_dir) + strlen(CONFIGDIR) + strlen("data") + 1);
299 strcpy(DATA_FILE, user_config_dir); 297 strcpy(DATA_FILE, user_config_dir);