summaryrefslogtreecommitdiff
path: root/endless
diff options
context:
space:
mode:
authorFernando Farfan <ffarfan@gmail.com>2015-09-25 17:56:03 -0600
committerFernando Farfan <ffarfan@gmail.com>2015-09-25 17:57:41 -0600
commitda5fa9b0a95b3a218754c69a758383860b7d4654 (patch)
tree81530bf60a0bfb731941c376fd84b426c5e68dc5 /endless
parent4b9a99b04a87fbf24ff783c42116c0de22c95671 (diff)
Don't hardcode refs to CC licenses in API
Our license-serving API is no longer exclusive to Creative Commons licenses, hence we should not make explicit, hardcoded references to CC in our code. [endlessm/eos-sdk#3471]
Diffstat (limited to 'endless')
-rw-r--r--endless/eoslicense.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/endless/eoslicense.c b/endless/eoslicense.c
index 3605d7f..2c33960 100644
--- a/endless/eoslicense.c
+++ b/endless/eoslicense.c
@@ -97,14 +97,14 @@ static gchar * const recognized_licenses_filenames[] = {
};
static const char *
-get_locale (GFile *cc_licenses_dir)
+get_locale (GFile *licenses_dir)
{
const gchar * const * languages = g_get_language_names ();
const gchar * const * iter;
for (iter = languages; *iter != NULL; iter++)
{
- GFile *license_file = g_file_get_child (cc_licenses_dir, *iter);
+ GFile *license_file = g_file_get_child (licenses_dir, *iter);
gboolean locale_file_exists = g_file_query_exists (license_file, NULL);
@@ -206,16 +206,16 @@ eos_get_license_file (const gchar *license)
gchar *licenses_path = g_build_filename (DATADIR, "licenses",
license_filename[0], NULL);
- GFile *cc_licenses_dir = g_file_new_for_path (licenses_path);
+ GFile *licenses_dir = g_file_new_for_path (licenses_path);
g_free (licenses_path);
- const char *locale = get_locale (cc_licenses_dir);
+ const char *locale = get_locale (licenses_dir);
- GFile *license_locale_dir = g_file_get_child (cc_licenses_dir, locale);
+ GFile *license_locale_dir = g_file_get_child (licenses_dir, locale);
GFile *license_file = g_file_get_child (license_locale_dir,
license_filename[1]);
- g_object_unref (cc_licenses_dir);
+ g_object_unref (licenses_dir);
g_object_unref (license_locale_dir);
g_strfreev (license_filename);