summaryrefslogtreecommitdiff
path: root/gcc/ada/g-socthi-vxworks.adb
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2006-10-31 17:44:38 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2006-10-31 17:44:38 +0000
commite26ebbeea9b05be79828e144c7db6445fc6378bc (patch)
treea4b15e4c7ae6e780932f214b7c0bcb0c53bb7d45 /gcc/ada/g-socthi-vxworks.adb
parent0ad97440188b17cc2f846f1993f25386bfcf43c4 (diff)
downloadgcc-e26ebbeea9b05be79828e144c7db6445fc6378bc.tar.gz
2006-10-31 Thomas Quinot <quinot@adacore.com>
* g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned error status. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118233 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/g-socthi-vxworks.adb')
-rw-r--r--gcc/ada/g-socthi-vxworks.adb4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ada/g-socthi-vxworks.adb b/gcc/ada/g-socthi-vxworks.adb
index 02a0df3fe33..cb72c9fde86 100644
--- a/gcc/ada/g-socthi-vxworks.adb
+++ b/gcc/ada/g-socthi-vxworks.adb
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 2002-2005, AdaCore --
+-- Copyright (C) 2002-2006, AdaCore --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -302,7 +302,7 @@ package body GNAT.Sockets.Thin is
begin
Addr := VxWorks_hostGetByName (Name);
- if Addr /= Constants.OK then
+ if Addr = Constants.ERROR then
return null;
end if;