Ver Fonte

ncd: make NCDModule structs non-const (for next commit which will need to modify them)

ambrop7 há 13 anos atrás
pai
commit
7227efdfe4
68 ficheiros alterados com 68 adições e 68 exclusões
  1. 1 1
      ncd/NCDModule.h
  2. 1 1
      ncd/modules/alias.c
  3. 1 1
      ncd/modules/arithmetic.c
  4. 1 1
      ncd/modules/assert.c
  5. 1 1
      ncd/modules/blocker.c
  6. 1 1
      ncd/modules/call.c
  7. 1 1
      ncd/modules/call2.c
  8. 1 1
      ncd/modules/choose.c
  9. 1 1
      ncd/modules/concat.c
  10. 1 1
      ncd/modules/concatv.c
  11. 1 1
      ncd/modules/daemon.c
  12. 1 1
      ncd/modules/depend.c
  13. 1 1
      ncd/modules/dynamic_depend.c
  14. 1 1
      ncd/modules/exit.c
  15. 1 1
      ncd/modules/explode.c
  16. 1 1
      ncd/modules/file.c
  17. 1 1
      ncd/modules/foreach.c
  18. 1 1
      ncd/modules/from_string.c
  19. 1 1
      ncd/modules/getargs.c
  20. 1 1
      ncd/modules/if.c
  21. 1 1
      ncd/modules/imperative.c
  22. 1 1
      ncd/modules/implode.c
  23. 1 1
      ncd/modules/index.c
  24. 1 1
      ncd/modules/list.c
  25. 1 1
      ncd/modules/logical.c
  26. 1 1
      ncd/modules/multidepend.c
  27. 1 1
      ncd/modules/net_backend_badvpn.c
  28. 1 1
      ncd/modules/net_backend_rfkill.c
  29. 1 1
      ncd/modules/net_backend_waitdevice.c
  30. 1 1
      ncd/modules/net_backend_waitlink.c
  31. 1 1
      ncd/modules/net_backend_wpa_supplicant.c
  32. 1 1
      ncd/modules/net_dns.c
  33. 1 1
      ncd/modules/net_iptables.c
  34. 1 1
      ncd/modules/net_ipv4_addr.c
  35. 1 1
      ncd/modules/net_ipv4_addr_in_network.c
  36. 1 1
      ncd/modules/net_ipv4_arp_probe.c
  37. 1 1
      ncd/modules/net_ipv4_dhcp.c
  38. 1 1
      ncd/modules/net_ipv4_route.c
  39. 1 1
      ncd/modules/net_ipv6_addr.c
  40. 1 1
      ncd/modules/net_ipv6_addr_in_network.c
  41. 1 1
      ncd/modules/net_ipv6_route.c
  42. 1 1
      ncd/modules/net_ipv6_wait_dynamic_addr.c
  43. 1 1
      ncd/modules/net_up.c
  44. 1 1
      ncd/modules/net_watch_interfaces.c
  45. 1 1
      ncd/modules/netmask.c
  46. 1 1
      ncd/modules/ondemand.c
  47. 1 1
      ncd/modules/parse.c
  48. 1 1
      ncd/modules/print.c
  49. 1 1
      ncd/modules/process_manager.c
  50. 1 1
      ncd/modules/reboot.c
  51. 1 1
      ncd/modules/ref.c
  52. 1 1
      ncd/modules/regex_match.c
  53. 1 1
      ncd/modules/run.c
  54. 1 1
      ncd/modules/runonce.c
  55. 1 1
      ncd/modules/sleep.c
  56. 1 1
      ncd/modules/spawn.c
  57. 1 1
      ncd/modules/strcmp.c
  58. 1 1
      ncd/modules/sys_evdev.c
  59. 1 1
      ncd/modules/sys_request_client.c
  60. 1 1
      ncd/modules/sys_request_server.c
  61. 1 1
      ncd/modules/sys_watch_directory.c
  62. 1 1
      ncd/modules/sys_watch_input.c
  63. 1 1
      ncd/modules/sys_watch_usb.c
  64. 1 1
      ncd/modules/to_string.c
  65. 1 1
      ncd/modules/try.c
  66. 1 1
      ncd/modules/value.c
  67. 1 1
      ncd/modules/valuemetic.c
  68. 1 1
      ncd/modules/var.c

+ 1 - 1
ncd/NCDModule.h

@@ -851,7 +851,7 @@ struct NCDModuleGroup {
      * Array of module backends. The array must be terminated with a
      * structure that has a NULL type member.
      */
-    const struct NCDModule *modules;
+    struct NCDModule *modules;
     
     /**
      * A pointer to an array of requests for string identifiers. The 'str'

+ 1 - 1
ncd/modules/alias.c

@@ -202,7 +202,7 @@ static int func_getobj (void *vo, NCD_string_id_t name, NCDObject *out_object)
     return NCDObject_GetObj(&obj2, name, out_object);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "alias",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/arithmetic.c

@@ -279,7 +279,7 @@ static void func_new_modulo (void *vo, NCDModuleInst *i, const struct NCDModuleI
     new_templ(vo, i, params, compute_modulo);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "num_lesser",
         .func_new2 = func_new_lesser,

+ 1 - 1
ncd/modules/assert.c

@@ -86,7 +86,7 @@ static void func_new_false (void *unused, NCDModuleInst *i, const struct NCDModu
     func_new_common(i, params, 1);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "assert",
         .func_new2 = func_new

+ 1 - 1
ncd/modules/blocker.c

@@ -322,7 +322,7 @@ static void use_func_die (void *vo)
     NCDModuleInst_Backend_Dead(o->i);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "blocker",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/call.c

@@ -323,7 +323,7 @@ static int ref_obj_func_getobj (struct instance *o, NCD_string_id_t name, NCDObj
     return NCDModuleInst_Backend_GetObj(o->crh->i, name, out_object);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "callrefhere",
         .func_new2 = callrefhere_func_new,

+ 1 - 1
ncd/modules/call2.c

@@ -418,7 +418,7 @@ static int func_getobj (void *vo, NCD_string_id_t name, NCDObject *out_object)
     return NCDModuleProcess_GetObj(&o->process, name, out_object);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "call2",
         .func_new2 = func_new_call,

+ 1 - 1
ncd/modules/choose.c

@@ -131,7 +131,7 @@ static int func_getvar (void *vo, const char *name, NCDValMem *mem, NCDValRef *o
     return 0;
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "choose",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/concat.c

@@ -118,7 +118,7 @@ static int func_getvar (void *vo, const char *name, NCDValMem *mem, NCDValRef *o
     return 0;
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "concat",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/concatv.c

@@ -129,7 +129,7 @@ static int func_getvar (void *vo, const char *name, NCDValMem *mem, NCDValRef *o
     return 0;
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "concatv",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/daemon.c

@@ -256,7 +256,7 @@ static void func_die (void *vo)
     o->state = STATE_RUNNING_DIE;
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "daemon",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/depend.c

@@ -389,7 +389,7 @@ static int depend_func_getobj (void *vo, NCD_string_id_t objname, NCDObject *out
     return NCDModuleInst_Backend_GetObj(o->p->i, objname, out_object);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "provide",
         .func_new2 = provide_func_new,

+ 1 - 1
ncd/modules/dynamic_depend.c

@@ -475,7 +475,7 @@ static int depend_func_getobj (void *vo, NCD_string_id_t objname, NCDObject *out
     return NCDModuleInst_Backend_GetObj(n->cur_p->i, objname, out_object);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "dynamic_provide",
         .func_new2 = provide_func_new,

+ 1 - 1
ncd/modules/exit.c

@@ -78,7 +78,7 @@ fail0:
     NCDModuleInst_Backend_Dead(i);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "exit",
         .func_new2 = func_new

+ 1 - 1
ncd/modules/explode.c

@@ -215,7 +215,7 @@ fail:
     return 1;
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "explode",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/file.c

@@ -305,7 +305,7 @@ static int stat_func_getvar (void *vo, const char *name, NCDValMem *mem, NCDValR
     return 0;
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "file_read",
         .func_new2 = read_func_new,

+ 1 - 1
ncd/modules/foreach.c

@@ -697,7 +697,7 @@ static void func_clean (void *vo)
     return;
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "foreach",
         .func_new2 = func_new_foreach,

+ 1 - 1
ncd/modules/from_string.c

@@ -112,7 +112,7 @@ static int func_getvar (void *vo, const char *name, NCDValMem *mem, NCDValRef *o
     return 0;
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "from_string",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/getargs.c

@@ -77,7 +77,7 @@ static int func_getvar (void *vo, const char *name, NCDValMem *mem, NCDValRef *o
     return 0;
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "getargs",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/if.c

@@ -86,7 +86,7 @@ static void func_new_not (void *unused, NCDModuleInst *i, const struct NCDModule
     new_templ(i, params, 1);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "if",
         .func_new2 = func_new

+ 1 - 1
ncd/modules/imperative.c

@@ -307,7 +307,7 @@ static void func_die (void *vo)
     }
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "imperative",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/implode.c

@@ -141,7 +141,7 @@ static int func_getvar (void *vo, const char *name, NCDValMem *mem, NCDValRef *o
     return 0;
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "implode",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/index.c

@@ -149,7 +149,7 @@ static int func_getvar (void *vo, const char *name, NCDValMem *mem, NCDValRef *o
     return 0;
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "index",
         .func_new2 = func_new_from_value,

+ 1 - 1
ncd/modules/list.c

@@ -841,7 +841,7 @@ fail0:
     NCDModuleInst_Backend_Dead(i);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "list",
         .func_new2 = func_new_list,

+ 1 - 1
ncd/modules/logical.c

@@ -138,7 +138,7 @@ static int func_getvar (void *vo, const char *name, NCDValMem *mem, NCDValRef *o
     return 0;
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "not",
         .func_new2 = func_new_not,

+ 1 - 1
ncd/modules/multidepend.c

@@ -337,7 +337,7 @@ static int depend_func_getobj (void *vo, NCD_string_id_t objname, NCDObject *out
     return NCDModuleInst_Backend_GetObj(o->provide->i, objname, out_object);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "multiprovide",
         .func_new2 = provide_func_new,

+ 1 - 1
ncd/modules/net_backend_badvpn.c

@@ -251,7 +251,7 @@ static void func_die (void *vo)
     o->dying = 1;
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "net.backend.badvpn",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/net_backend_rfkill.c

@@ -191,7 +191,7 @@ static void func_die (void *vo)
     NCDModuleInst_Backend_Dead(o->i);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "net.backend.rfkill",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/net_backend_waitdevice.c

@@ -170,7 +170,7 @@ static void func_die (void *vo)
     NCDModuleInst_Backend_Dead(o->i);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "net.backend.waitdevice",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/net_backend_waitlink.c

@@ -129,7 +129,7 @@ static void func_die (void *vo)
     instance_free(o);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "net.backend.waitlink",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/net_backend_wpa_supplicant.c

@@ -546,7 +546,7 @@ static int func_getvar (void *vo, const char *name, NCDValMem *mem, NCDValRef *o
     return 0;
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "net.backend.wpa_supplicant",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/net_dns.c

@@ -267,7 +267,7 @@ static void func_die (void *vo)
     NCDModuleInst_Backend_Dead(o->i);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "net.dns",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/net_iptables.c

@@ -541,7 +541,7 @@ static void unlock_free (struct unlock_instance *o)
     NCDModuleInst_Backend_Dead(o->i);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "net.iptables.append",
         .func_new2 = append_iptables_func_new,

+ 1 - 1
ncd/modules/net_ipv4_addr.c

@@ -124,7 +124,7 @@ static void func_die (void *vo)
     NCDModuleInst_Backend_Dead(o->i);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "net.ipv4.addr",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/net_ipv4_addr_in_network.c

@@ -151,7 +151,7 @@ static int func_getvar (void *vo, const char *name, NCDValMem *mem, NCDValRef *o
     return 0;
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "net.ipv4.addr_in_network",
         .func_new2 = func_new_normal,

+ 1 - 1
ncd/modules/net_ipv4_arp_probe.c

@@ -192,7 +192,7 @@ static int func_getvar (void *vo, const char *name, NCDValMem *mem, NCDValRef *o
     return 0;
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "net.ipv4.arp_probe",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/net_ipv4_dhcp.c

@@ -319,7 +319,7 @@ fail:
     return 1;
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "net.ipv4.dhcp",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/net_ipv4_route.c

@@ -182,7 +182,7 @@ static void func_die (void *vo)
     NCDModuleInst_Backend_Dead(o->i);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "net.ipv4.route",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/net_ipv6_addr.c

@@ -124,7 +124,7 @@ static void func_die (void *vo)
     NCDModuleInst_Backend_Dead(o->i);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "net.ipv6.addr",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/net_ipv6_addr_in_network.c

@@ -151,7 +151,7 @@ static int func_getvar (void *vo, const char *name, NCDValMem *mem, NCDValRef *o
     return 0;
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "net.ipv6.addr_in_network",
         .func_new2 = func_new_normal,

+ 1 - 1
ncd/modules/net_ipv6_route.c

@@ -184,7 +184,7 @@ static void func_die (void *vo)
     NCDModuleInst_Backend_Dead(o->i);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "net.ipv6.route",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/net_ipv6_wait_dynamic_addr.c

@@ -183,7 +183,7 @@ static int func_getvar (void *vo, const char *name, NCDValMem *mem, NCDValRef *o
     return 0;
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "net.ipv6.wait_dynamic_addr",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/net_up.c

@@ -94,7 +94,7 @@ static void func_die (void *vo)
     NCDModuleInst_Backend_Dead(o->i);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "net.up",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/net_watch_interfaces.c

@@ -452,7 +452,7 @@ fail0:
     NCDModuleInst_Backend_Dead(i);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "net.watch_interfaces",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/netmask.c

@@ -242,7 +242,7 @@ static int prefix_func_getvar (void *vo, const char *name, NCDValMem *mem, NCDVa
     return 0;
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "ipv4_prefix_to_mask",
         .func_new2 = prefix_to_mask_func_init,

+ 1 - 1
ncd/modules/ondemand.c

@@ -348,7 +348,7 @@ static int demand_func_getobj (void *vo, NCD_string_id_t objname, NCDObject *out
     return NCDModuleProcess_GetObj(&o->od->process, objname, out_object);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "ondemand",
         .func_new2 = ondemand_func_new,

+ 1 - 1
ncd/modules/parse.c

@@ -275,7 +275,7 @@ static int ipv4_cidr_addr_func_getvar (void *vo, const char *name, NCDValMem *me
     return 1;
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "parse_number",
         .func_new2 = func_new_parse_number,

+ 1 - 1
ncd/modules/print.c

@@ -179,7 +179,7 @@ static void rprintln_func_new (void *vo, NCDModuleInst *i, const struct NCDModul
     return rprint_func_new_common(vo, i, params, 1);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "print",
         .func_new2 = print_func_new

+ 1 - 1
ncd/modules/process_manager.c

@@ -570,7 +570,7 @@ fail0:
     NCDModuleInst_Backend_Dead(i);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "process_manager",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/reboot.c

@@ -88,7 +88,7 @@ fail0:
     NCDModuleInst_Backend_Dead(i);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "hard_reboot",
         .func_new2 = func_new_hard_reboot

+ 1 - 1
ncd/modules/ref.c

@@ -186,7 +186,7 @@ static int ref_func_getobj (void *vo, NCD_string_id_t objname, NCDObject *out_ob
     return NCDModuleInst_Backend_GetObj(o->rh->i, objname, out_object);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "refhere",
         .func_new2 = refhere_func_new,

+ 1 - 1
ncd/modules/regex_match.c

@@ -343,7 +343,7 @@ static int replace_func_getvar (void *vo, const char *name, NCDValMem *mem, NCDV
     return 0;
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "regex_match",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/run.c

@@ -166,7 +166,7 @@ static void func_die (void *vo)
     command_template_die(&o->cti);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "run",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/runonce.c

@@ -310,7 +310,7 @@ static int func_getvar (void *vo, const char *name, NCDValMem *mem, NCDValRef *o
     return 0;
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "runonce",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/sleep.c

@@ -127,7 +127,7 @@ static void func_die (void *vo)
     BReactor_SetTimerAfter(o->i->params->iparams->reactor, &o->timer, o->ms_stop);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "sleep",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/spawn.c

@@ -383,7 +383,7 @@ static void join_func_clean (void *vo)
     }
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "spawn",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/strcmp.c

@@ -95,7 +95,7 @@ static int func_getvar (void *vo, const char *name, NCDValMem *mem, NCDValRef *o
     return 0;
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "strcmp",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/sys_evdev.c

@@ -325,7 +325,7 @@ fail0:
     NCDModuleInst_Backend_Dead(i);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "sys.evdev",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/sys_request_client.c

@@ -687,7 +687,7 @@ static void request_func_die (void *vo)
     request_die(o, 0);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "sys.request_client",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/sys_request_server.c

@@ -873,7 +873,7 @@ fail:
     NCDModuleInst_Backend_Dead(i);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "sys.request_server",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/sys_watch_directory.c

@@ -405,7 +405,7 @@ fail0:
     NCDModuleInst_Backend_Dead(i);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "sys.watch_directory",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/sys_watch_input.c

@@ -431,7 +431,7 @@ fail0:
     NCDModuleInst_Backend_Dead(i);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "sys.watch_input",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/sys_watch_usb.c

@@ -399,7 +399,7 @@ fail0:
     NCDModuleInst_Backend_Dead(i);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "sys.watch_usb",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/to_string.c

@@ -101,7 +101,7 @@ static int func_getvar (void *vo, const char *name, NCDValMem *mem, NCDValRef *o
     return 0;
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "to_string",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/try.c

@@ -281,7 +281,7 @@ fail1:
     NCDModuleInst_Backend_Dead(i);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "try",
         .func_new2 = func_new,

+ 1 - 1
ncd/modules/value.c

@@ -1531,7 +1531,7 @@ fail0:
     NCDModuleInst_Backend_Dead(i);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "value",
         .func_new2 = func_new_value,

+ 1 - 1
ncd/modules/valuemetic.c

@@ -176,7 +176,7 @@ static void func_new_different (void *vo, NCDModuleInst *i, const struct NCDModu
     new_templ(vo, i, params, compute_different);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "val_lesser",
         .func_new2 = func_new_lesser,

+ 1 - 1
ncd/modules/var.c

@@ -149,7 +149,7 @@ fail0:
     NCDModuleInst_Backend_Dead(i);
 }
 
-static const struct NCDModule modules[] = {
+static struct NCDModule modules[] = {
     {
         .type = "var",
         .func_new2 = func_new,