فهرست منبع

ncd: port modules/alias to func_new2 (missed in previous commit)

ambrop7 13 سال پیش
والد
کامیت
0d4ac51bb3
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      ncd/modules/alias.c

+ 2 - 2
ncd/modules/alias.c

@@ -75,7 +75,7 @@ static int split_string_inplace (char *str, char del)
     return num_extra_parts;
 }
 
-static void func_new (NCDModuleInst *i)
+static void func_new (void *unused, NCDModuleInst *i)
 {
     // read arguments
     NCDValRef target_arg;
@@ -158,7 +158,7 @@ static int func_getobj (void *vo, const char *name, NCDObject *out_object)
 static const struct NCDModule modules[] = {
     {
         .type = "alias",
-        .func_new = func_new,
+        .func_new2 = func_new,
         .func_die = func_die,
         .func_getobj = func_getobj
     }, {