]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Warnings on g-spogwa.adb
authorArnaud Charlet <charlet@adacore.com>
Thu, 24 Sep 2020 08:00:51 +0000 (04:00 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 27 Oct 2020 09:19:34 +0000 (05:19 -0400)
gcc/ada/

* Makefile.rtl (GNATRTL_NONTASKING_OBJS): Add g-spogwa object.
* libgnat/g-spogwa.adb: Fix style errors.

gcc/ada/Makefile.rtl
gcc/ada/libgnat/g-spogwa.adb

index ba8c28c7c823d242aa4148e0bc8df3c75d9de641..b7df078c0bdd360e010f8e2ce8fc46e56dc7fdbf 100644 (file)
@@ -483,6 +483,7 @@ GNATRTL_NONTASKING_OBJS= \
   g-speche$(objext) \
   g-spipat$(objext) \
   g-spitbo$(objext) \
+  g-spogwa$(objext) \
   g-sptabo$(objext) \
   g-sptain$(objext) \
   g-sptavs$(objext) \
index a9135ea110d5e4ece46e3ccd75995c80489328b2..6e0af44f076d4cfc4367387601c33c416bf1096a 100644 (file)
@@ -36,8 +36,6 @@ procedure GNAT.Sockets.Poll.G_Wait
 is
    use Interfaces;
 
-   use type C.int;
-
    function C_Select
      (Nfds      : C.int;
       readfds   : access FD_Set_Type;
@@ -65,8 +63,8 @@ begin
 
    if Timeout >= 0 then
       Timeout_A := Timeout_V'Access;
-      Timeout_V.tv_sec  := Thin_Common.time_t  (Timeout / 1000);
-      Timeout_V.tv_usec := Thin_Common.suseconds_t (Timeout rem 1000 * 1000);
+      Timeout_V.Tv_Sec  := Thin_Common.time_t  (Timeout / 1000);
+      Timeout_V.Tv_Usec := Thin_Common.suseconds_t (Timeout rem 1000 * 1000);
    end if;
 
    Reset_Socket_Set (Rfds);