fix warning in generated code for CmiHandler.
authorGengbin Zheng <gzheng@illinois.edu>
Fri, 24 Jan 2003 04:45:12 +0000 (04:45 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Fri, 24 Jan 2003 04:45:12 +0000 (04:45 +0000)
src/xlatcpm/conv-cpm.c

index b7b91edd294740514cebf6603411264d96cbce9b..59d0f320b54eb81af641b2de2af342ecbd0d21be 100644 (file)
@@ -2033,7 +2033,7 @@ void gen_mod_tail()
   fprintf(file_cpm, "CpvInitialize(int, CpmIPRIO);\n");
   for (i=0; i<mod_len; i++) {
     fprintf(file_cpm, "CpvInitialize(int, CpmIndex_%s);\n", mod_funcs[i]);
-    fprintf(file_cpm, "CpvAccess(CpmIndex_%s) = CmiRegisterHandler(CpmRecv_%s);\n",
+    fprintf(file_cpm, "CpvAccess(CpmIndex_%s) = CmiRegisterHandler((CmiHandler)CpmRecv_%s);\n",
          mod_funcs[i], mod_funcs[i]);
   }
   fprintf(file_cpm, "}\n");