diff options
Diffstat (limited to 'sys/tools')
| -rw-r--r-- | sys/tools/makeobjops.awk | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/tools/makeobjops.awk b/sys/tools/makeobjops.awk index 4e3bd0485d25e..34f2b09ae0f0e 100644 --- a/sys/tools/makeobjops.awk +++ b/sys/tools/makeobjops.awk @@ -306,13 +306,8 @@ function handle_method (static, doc) printh(format_line(prototype argument_list ");", line_width, length(prototype))); - # Print out the method desc - printc("static const struct kobj_method " mname "_method_default = {"); - printc("\t&" mname "_desc, (kobjop_t) " default_function); - printc("};\n"); - printc("struct kobjop_desc " mname "_desc = {"); - printc("\t0, &" mname "_method_default"); + printc("\t0, { &" mname "_desc, (kobjop_t)" default_function " }"); printc("};\n"); # Print out the method itself |
