|
From: Andre R. <and...@us...> - 2004-10-30 23:15:18
|
Update of /cvsroot/frontierkernel/Frontier/Common/source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24396 Modified Files: langdll.c Log Message: Fix GCC compiler warnings. Index: langdll.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/source/langdll.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** langdll.c 23 Oct 2004 22:24:05 -0000 1.2 --- langdll.c 30 Oct 2004 23:15:04 -0000 1.3 *************** *** 358,362 **** odbBool res; hdllistrecord hlist; - hdlcancoonrecord hc = (hdlcancoonrecord) odb; res = false; --- 358,361 ---- *************** *** 387,391 **** odbBool xCALLBACK extOdbGetListCount (odbRef odb, odbValueRecord *value, long * cnt) { odbBool res; - hdlcancoonrecord hc = (hdlcancoonrecord) odb; res = false; --- 386,389 ---- *************** *** 407,411 **** odbBool xCALLBACK extOdbDeleteListValue (odbRef odb, odbValueRecord *value, long index, char * recordname) { odbBool res; - hdlcancoonrecord hc = (hdlcancoonrecord) odb; res = false; --- 405,408 ---- *************** *** 425,429 **** odbBool xCALLBACK extOdbSetListValue (odbRef odb, odbValueRecord *value, long index, char * recordname, odbValueRecord *valueData) { odbBool res; - hdlcancoonrecord hc = (hdlcancoonrecord) odb; tyvaluerecord val; --- 422,425 ---- *************** *** 447,451 **** odbBool xCALLBACK extOdbGetListValue (odbRef odb, odbValueRecord *value, long index, char * recordname, odbValueRecord *valueReturn) { odbBool res; - hdlcancoonrecord hc = (hdlcancoonrecord) odb; tyvaluerecord valret; --- 443,446 ---- *************** *** 469,473 **** odbBool xCALLBACK extOdbAddListValue (odbRef odb, odbValueRecord *value, char * recordname, odbValueRecord *valueData) { odbBool res; - hdlcancoonrecord hc = (hdlcancoonrecord) odb; tyvaluerecord val; --- 464,467 ---- *************** *** 1081,1085 **** hnext = (**h).hashlink; ! disposehandle (h); h = hnext; --- 1075,1079 ---- hnext = (**h).hashlink; ! disposehandle ((Handle) h); h = hnext; *************** *** 1559,1567 **** #ifdef MACVERSION ! lockhandle (hdll); CloseConnection (&(**hdll).hdllsyshandle); ! unlockhandle (hdll); #endif --- 1553,1561 ---- #ifdef MACVERSION ! lockhandle ((Handle) hdll); CloseConnection (&(**hdll).hdllsyshandle); ! unlockhandle ((Handle) hdll); #endif *************** *** 1635,1639 **** long kmax = (**hprocinfo).ctparams; long k; - boolean flresult = false; if (!langcheckparamcount (hp1, (short) ((**hprocinfo).ctparams + 2))) --- 1629,1632 ---- *************** *** 1756,1760 **** fillcalltable (&calltable); ! lockhandle (hprocinfo); /* just to be sure our data doesn't move around */ /* If procaddress is undefined, look it up now and save it for future reference */ --- 1749,1753 ---- fillcalltable (&calltable); ! lockhandle ((Handle) hprocinfo); /* just to be sure our data doesn't move around */ /* If procaddress is undefined, look it up now and save it for future reference */ *************** *** 1818,1822 **** exit: ! unlockhandle (hprocinfo); return (fl); --- 1811,1815 ---- exit: ! unlockhandle ((Handle) hprocinfo); return (fl); *************** *** 1840,1844 **** /* Set up the paramblock for the call and save the original param handles */ ! fl = initparamblock (hparam1, hprocinfo, &dllparamblock, &orighandles); if (fl) { --- 1833,1837 ---- /* Set up the paramblock for the call and save the original param handles */ ! fl = initparamblock (hparam1, hprocinfo, &dllparamblock, orighandles); if (fl) { *************** *** 1850,1854 **** /* Restore original param handles and free heap-allocated params */ ! freeparamblock (hprocinfo, &orighandles); } --- 1843,1847 ---- /* Restore original param handles and free heap-allocated params */ ! freeparamblock (hprocinfo, orighandles); } *************** *** 1920,1924 **** /* Dispose proc info here because we didn't ask for the hash table to be built */ ! disposehandle (hprocinfo); /* Unload the DLL */ --- 1913,1917 ---- /* Dispose proc info here because we didn't ask for the hash table to be built */ ! disposehandle ((Handle) hprocinfo); /* Unload the DLL */ |