Remove const specifiers in cynara_admin_policy structure 04/24504/1
authorLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Tue, 15 Jul 2014 12:20:44 +0000 (14:20 +0200)
committerLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Tue, 15 Jul 2014 12:22:08 +0000 (14:22 +0200)
With fileds defined as const, user of this structure would probably
have some problems with freeing memory.

Change-Id: I159ebc2ea772c76be70e5e58310f0ae1e8728c8f

src/include/cynara-admin.h

index 39a612b..1fef8eb 100644 (file)
@@ -62,14 +62,14 @@ extern "C" {
 
 //todo comments
 struct cynara_admin_policy {
-    const char *bucket;
+    char *bucket;
 
-    const char *client;
-    const char *user;
-    const char *privilege;
+    char *client;
+    char *user;
+    char *privilege;
 
     int result;
-    const char *result_extra;
+    char *result_extra;
 };
 
 /**