1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-19 21:36:36 +02:00

Install and use DHTservers file

DHTservers will go to $prefix/share/toxic/DHTservers
This commit is contained in:
Sergey 'Jin' Bostandzhyan
2013-08-23 01:37:19 +03:00
parent c157837f97
commit 30666d2deb
5 changed files with 21 additions and 2 deletions

View File

@ -2,6 +2,10 @@
* Toxic -- Tox Curses Client
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#define _XOPEN_SOURCE_EXTENDED
#include <curses.h>
#include <errno.h>
@ -294,7 +298,7 @@ int main(int argc, char *argv[])
if (config_err) {
DATA_FILE = strdup("data");
SRVLIST_FILE = strdup("../../other/DHTservers");
SRVLIST_FILE = strdup(PACKAGE_DATADIR "/DHTservers");
} else {
DATA_FILE = malloc(strlen(user_config_dir) + strlen(CONFIGDIR) + strlen("data") + 1);
strcpy(DATA_FILE, user_config_dir);