Christian Westrom 2 vuotta sitten
vanhempi
commit
0fc78fa017
No account linked to committer's email
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3
    3
      src/light.c

+ 3
- 3
src/light.c Näytä tiedosto

@@ -70,7 +70,7 @@ static void _light_add_device_target(light_device_t *device, light_device_target
70 70
     device->num_targets = new_num_targets;
71 71
 }
72 72
 
73
-static bool light_rc_initialize(light_context_t *new_ctx) {
73
+static bool _light_rc_initialize(light_context_t *new_ctx) {
74 74
     // Setup the configuration folder
75 75
     // If we are root, use the system-wide configuration folder, otherwise try to find a user-specific folder, or fall back to ~/.config
76 76
     uid_t euid = geteuid();
@@ -105,7 +105,7 @@ static bool light_rc_initialize(light_context_t *new_ctx) {
105 105
 
106 106
 static void _light_get_target_path(light_context_t* ctx, char* output_path, size_t output_size)
107 107
 {
108
-    if (light_rc_initialize(ctx)) {
108
+    if (_light_rc_initialize(ctx)) {
109 109
       snprintf(output_path, output_size, "%s/targets/%s/%s/%s",
110 110
                ctx->sys_params.conf_dir,
111 111
                ctx->run_params.device_target->device->enumerator->name,
@@ -116,7 +116,7 @@ static void _light_get_target_path(light_context_t* ctx, char* output_path, size
116 116
 
117 117
 static void _light_get_target_file(light_context_t* ctx, char* output_path, size_t output_size, char const * file)
118 118
 {
119
-    if (light_rc_initialize(ctx)) {
119
+    if (_light_rc_initialize(ctx)) {
120 120
       snprintf(output_path, output_size, "%s/targets/%s/%s/%s/%s",
121 121
                ctx->sys_params.conf_dir,
122 122
                ctx->run_params.device_target->device->enumerator->name,