about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-10-16 10:54:05 +0200
committerMichael Vetter <jubalh@iodoru.org>2019-10-16 10:54:05 +0200
commitee0541a262a8c9e0a2dfd8dfe1eff4775fc59081 (patch)
treeb2d106ee9fe28fdfa92f1015f4df311fa8fe4936 /src
parent46f0304f898f7f7a27b2cf8aedf30b85d22fb75c (diff)
downloadprofani-tty-ee0541a262a8c9e0a2dfd8dfe1eff4775fc59081.tar.gz
Rename identification file
Diffstat (limited to 'src')
-rw-r--r--src/config/files.h3
-rw-r--r--src/xmpp/connection.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/config/files.h b/src/config/files.h
index 975b4509..16292dc4 100644
--- a/src/config/files.h
+++ b/src/config/files.h
@@ -2,6 +2,7 @@
  * files.h
  *
  * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com>
+ * Copyright (C) 2018 - 2019 Michael Vetter <jubalh@idoru.org>
  *
  * This file is part of Profanity.
  *
@@ -43,7 +44,7 @@
 #define FILE_PLUGIN_SETTINGS "plugin_settings"
 #define FILE_PLUGIN_THEMES "plugin_themes"
 #define FILE_CAPSCACHE "capscache"
-#define FILE_RND_INST_BYTES "randbytes"
+#define FILE_PROFANITY_IDENTIFIER "profident"
 
 #define DIR_THEMES "themes"
 #define DIR_ICONS "icons"
diff --git a/src/xmpp/connection.c b/src/xmpp/connection.c
index 2d2e5773..e9ccd756 100644
--- a/src/xmpp/connection.c
+++ b/src/xmpp/connection.c
@@ -2,6 +2,7 @@
  * connection.c
  *
  * Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com>
+ * Copyright (C) 2018 - 2019 Michael Vetter <jubalh@idoru.org>
  *
  * This file is part of Profanity.
  *
@@ -624,7 +625,7 @@ static void _random_bytes_init()
     char *rndbytes_loc;
     GKeyFile *rndbytes;
 
-    rndbytes_loc = files_get_data_path(FILE_RND_INST_BYTES);
+    rndbytes_loc = files_get_data_path(FILE_PROFANITY_IDENTIFIER);
 
     if (g_file_test(rndbytes_loc, G_FILE_TEST_EXISTS)) {
         g_chmod(rndbytes_loc, S_IRUSR | S_IWUSR);