X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=tools%2Fcpkg2c.mll;h=b04a849d9b9a64328e34a09223f48421e29b6c54;hp=0abfe8b9dd2b938fab1de937b3377c7c59131b3a;hb=819c071fa7efc8dffb4dd92f36f0111227ff692f;hpb=74188c72520968a68bfedbbb7f8e51d251a03f72 diff --git a/tools/cpkg2c.mll b/tools/cpkg2c.mll index 0abfe8b..b04a849 100644 --- a/tools/cpkg2c.mll +++ b/tools/cpkg2c.mll @@ -496,7 +496,7 @@ and ext_member m f = parse fprintf ob "};\n"; (* dump struct init func *) - fprintf ob "\nstatic void %s_init(void)\n{\n" pkg.name; + fprintf ob "\nstatic void (%s_init)(void)\n{\n" pkg.name; List.iter (function (m, _, _) -> if not (fst m.typ) then let init, f, l = m.init in