Code

core/data: Make string and binary data not constant.
[sysdb.git] / src / include / core / data.h
index 4a4dd2d3385e5f2fbf9e17fbd39cf0e2161772b4..b657486b794b16cdb9bc00560cb0b2f4ab2090dc 100644 (file)
@@ -58,11 +58,11 @@ typedef struct {
        union {
                int64_t     integer;  /* SDB_TYPE_INTEGER */
                double      decimal;  /* SDB_TYPE_DECIMAL */
-               const char *string;   /* SDB_TYPE_STRING  */
+               char       *string;   /* SDB_TYPE_STRING  */
                sdb_time_t  datetime; /* SDB_TYPE_DATETIME */
                struct {
                        size_t length;
-                       const unsigned char *datum;
+                       unsigned char *datum;
                } binary;             /* SDB_TYPE_BINARY */
        } data;
 } sdb_data_t;