summaryrefslogtreecommitdiffstats
path: root/src/rest.c
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2020-10-07 11:05:51 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-10-07 11:11:04 +0200
commit3cea4bb763165d119a329a1c7f2c767857cdb384 (patch)
treed4a4b18025967ef5bacf7cbd7808698ad63ed7e6 /src/rest.c
parentd7a871b529de5f7d1a72137f395e3ae8bb42a1fd (diff)
#988 rename og_server_cfg to cfg
to avoid clash with existing variable cfg in client.c
Diffstat (limited to 'src/rest.c')
-rw-r--r--src/rest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rest.c b/src/rest.c
index 2d96500..f8eefc5 100644
--- a/src/rest.c
+++ b/src/rest.c
@@ -1548,7 +1548,7 @@ struct og_image {
static int og_get_image_stats(const char *name,
struct stat *image_stats)
{
- const char *dir = cfg.repo.dir;
+ const char *dir = ogconfig.repo.dir;
char filename[PATH_MAX + 1];
snprintf(filename, sizeof(filename), "%s/%s", dir, name);
@@ -1561,7 +1561,7 @@ static int og_get_image_stats(const char *name,
static json_t *og_json_disk_alloc()
{
- const char *dir = cfg.repo.dir;
+ const char *dir = ogconfig.repo.dir;
struct statvfs buffer;
json_t *disk_json;
int ret;