Salome HOME
Fix compilation pb.
[modules/kernel.git] / src / Registry / RegistryConnexion.cxx
index 59073d9cdc20ba55e3e6a40dde3f9d6b13873ba3..62f017e15e46b211c9058c939016134a58f5d982 100644 (file)
@@ -1,14 +1,31 @@
-using namespace std;
-//=============================================================================
-// File      : RegistryConnexion.cxx
-// Created   : Mon Nov  5 17:26:23 CET 2001
-// Author    : Pascale NOYRET - Antoine YESSAYAN, EDF
-// Project   : SALOME
-// Copyright : EDF 2001
-// $Header$
-//=============================================================================
+//  SALOME Registry : Registry server implementation
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  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.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+//
+//
+//  File   : RegistryConnexion.cxx
+//  Author : Pascale NOYRET - Antoine YESSAYAN, EDF
+//  Module : SALOME
+//  $Header$
 
-using namespace std;
 # include "Utils_ORB_INIT.hxx"
 # include "RegistryConnexion.hxx"
 # include "SALOME_NamingService.hxx"
@@ -22,6 +39,7 @@ extern "C"
 {
 # include <stdio.h>
 }
+using namespace std;
 
 
 Registry::Components_var Connexion( int argc , char **argv , const char *ptrSessionName ) throw( CommException )
@@ -80,7 +98,11 @@ RegistryConnexion::~RegistryConnexion()
                _VarComponents->remove( _Id ) ;
        }
        _Id   = 0 ;
+#ifndef WNT
        delete [] _Ior;
+#else
+       delete [] (char*) _Ior;
+#endif
        _Ior = 0;
        _SessionName = "";
        _Name = "" ;
@@ -103,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 ;