diff --git a/apps/restconf/restconf_main_fcgi.c b/apps/restconf/restconf_main_fcgi.c index 7c21c891..c716e14b 100644 --- a/apps/restconf/restconf_main_fcgi.c +++ b/apps/restconf/restconf_main_fcgi.c @@ -498,7 +498,7 @@ main(int argc, goto done; /* Create top-level yang spec and store as option */ - if ((yspec = yspec_new(h, YSPEC_DATA_TOP)) == NULL) + if ((yspec = yspec_new(h, YANG_DATA_TOP)) == NULL) goto done; /* Initialize plugin module by creating a handle holding plugin and callback lists */