Fix formatting issues and remove unused variable

This commit is contained in:
Daly Brown
2024-04-04 16:06:19 -04:00
parent be72849d48
commit 63547d954a
3 changed files with 2 additions and 7 deletions

View File

@ -43,7 +43,7 @@ package body SPARK_Sockets is
GNAT.Sockets.Create_Socket (S, Family, Mode);
Socket := (Exists => True, Socket => S);
exception
when E : others =>
when others =>
Socket := (Exists => False);
end Create_Socket;

View File

@ -271,7 +271,6 @@ package body Tls_Client with SPARK_Mode is
end if;
if DTLS then
-- Set DTLS peer.
Result := WolfSSL.DTLS_Set_Peer(Ssl => Ssl,
Address => A);
if Result /= Success then

View File

@ -347,11 +347,7 @@ package body Tls_Server with SPARK_Mode is
Result := WolfSSL.Shutdown (Ssl);
if DTLS then
exit;
end if;
exit when Result = Success;
exit when DTLS or Result = Success;
delay 0.001; -- Delay is expressed in seconds.
end loop;