Code

Read-only store types: const char ** → const char * const *.
[sysdb.git] / src / core / store.c
index c6e22df69f55591e433c2d52fee5341dea6c2d90..0a23513f4b87ea31a68cbbe6ed103b2c4e9fa2b6 100644 (file)
@@ -66,7 +66,7 @@ typedef struct {
        int type;
        const char *name;
        sdb_time_t last_update;
        int type;
        const char *name;
        sdb_time_t last_update;
-       const char **backends;
+       const char * const *backends;
        size_t backends_num;
 } store_obj_t;
 #define STORE_OBJ_INIT { NULL, NULL, 0, NULL, 0, NULL, 0 }
        size_t backends_num;
 } store_obj_t;
 #define STORE_OBJ_INIT { NULL, NULL, 0, NULL, 0, NULL, 0 }
@@ -307,7 +307,7 @@ static sdb_type_t attribute_type = {
 
 static int
 record_backends(sdb_store_obj_t *obj,
 
 static int
 record_backends(sdb_store_obj_t *obj,
-               const char **backends, size_t backends_num)
+               const char * const *backends, size_t backends_num)
 {
        char **tmp;
        size_t i;
 {
        char **tmp;
        size_t i;