diff options
author | Doug Rupp <rupp@adacore.com> | 2021-08-20 08:26:58 -0700 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2021-10-04 08:45:04 +0000 |
commit | d681ce903bffa9b5ac19fa7ffb721e55043a0fcc (patch) | |
tree | 4eebc4302f4a540d5784f7b5c3c4a2bd8547514f /gcc/ada/libgnarl/s-tpopsp__vxworks.adb | |
parent | 602176ae83ad265a1dfa061c8b85e24376c22028 (diff) | |
download | gcc-d681ce903bffa9b5ac19fa7ffb721e55043a0fcc.zip gcc-d681ce903bffa9b5ac19fa7ffb721e55043a0fcc.tar.gz gcc-d681ce903bffa9b5ac19fa7ffb721e55043a0fcc.tar.bz2 |
[Ada] VxWorks inconsistent use of return type Fixup
gcc/ada/
* libgnarl/s-osinte__vxworks.ads (tlsKeyCreate): Return int.
* libgnarl/s-tpopsp__vxworks-rtp.adb (ERROR): Declare from
System.VxWorks.Ext.ERROR.
(Initialize): Declare IERR. Assert it.
* libgnarl/s-tpopsp__vxworks.adb (ERROR): Declare from
System.VxWorks.Ext.ERROR.
(Is_Valid_Task): Declare IERR. Test return.
* libgnarl/s-vxwext__kernel.adb (semDelete): Return STATUS.
Diffstat (limited to 'gcc/ada/libgnarl/s-tpopsp__vxworks.adb')
-rw-r--r-- | gcc/ada/libgnarl/s-tpopsp__vxworks.adb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/ada/libgnarl/s-tpopsp__vxworks.adb b/gcc/ada/libgnarl/s-tpopsp__vxworks.adb index 2d7cf00..9dc5d8b 100644 --- a/gcc/ada/libgnarl/s-tpopsp__vxworks.adb +++ b/gcc/ada/libgnarl/s-tpopsp__vxworks.adb @@ -35,6 +35,8 @@ separate (System.Task_Primitives.Operations) package body Specific is + ERROR : constant STATUS := System.VxWorks.Ext.ERROR; + ATCB_Key : aliased System.Address := System.Null_Address; -- Key used to find the Ada Task_Id associated with a thread @@ -70,8 +72,9 @@ package body Specific is ------------------- function Is_Valid_Task return Boolean is + IERR : constant := -1; begin - return taskVarGet (taskIdSelf, ATCB_Key'Access) /= ERROR; + return taskVarGet (taskIdSelf, ATCB_Key'Access) /= IERR; end Is_Valid_Task; --------- |