Salome HOME
Fix compilation pb.
[modules/kernel.git] / src / Registry / RegistryConnexion.cxx
index bf33e0882160df3254002ade8f6ce16a170cc1f9..62f017e15e46b211c9058c939016134a58f5d982 100644 (file)
@@ -17,7 +17,7 @@
 //  License along with this library; if not, write to the Free Software 
 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
 // 
-//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 //
 //
@@ -98,7 +98,11 @@ RegistryConnexion::~RegistryConnexion()
                _VarComponents->remove( _Id ) ;
        }
        _Id   = 0 ;
+#ifndef WNT
        delete [] _Ior;
+#else
+       delete [] (char*) _Ior;
+#endif
        _Ior = 0;
        _SessionName = "";
        _Name = "" ;
@@ -121,7 +125,7 @@ void RegistryConnexion::add( const char *aName )
                infos.pid       = lesInfos.pid() ;
                infos.machine   = CORBA::string_dup( lesInfos.host_char() ) ;
                infos.adip      = CORBA::string_dup( lesInfos.adip() ) ;
-               infos.uid       = lesInfos.uid() ;
+               infos.uid       = (long)lesInfos.uid() ;
                infos.pwname    = CORBA::string_dup( lesInfos.pwname() ) ;
                infos.tc_start  = lesInfos.start() ;
                infos.tc_hello  = 0 ;