Skip to content

Commit b4cfd3d

Browse files
committed
Fix for parent commit
1 parent d575d0f commit b4cfd3d

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

TODO.org

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
- [ ] Add tests for the server
3131
- [ ] Make the validation profile work for the server
3232
either with the Workarounds package or making SPARKLib 15 to work.
33+
- [ ] Add server in workflows
3334

3435
* Upgrades
3536
- [x] (discarded) Upgrade to GNATProve 15 and GNAT 15

client/src/coap_client.adb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ procedure CoAP_Client is
3232
package Types renames RFLX.RFLX_Types;
3333
package Channel renames CoAP_SPARK.Channel;
3434

35-
use type RFLX.CoAP_Client.Session_Environment.Status_Type;
35+
use type CoAP_SPARK.Status_Type;
3636
use type Types.Index;
3737
use type Types.Bytes_Ptr;
3838

@@ -131,7 +131,7 @@ procedure CoAP_Client is
131131
Payload => Payload,
132132
Session_State => Ctx.E);
133133

134-
if Ctx.E.Current_Status /= Session_Environment.OK then
134+
if Ctx.E.Current_Status /= CoAP_SPARK.OK then
135135
CoAP_SPARK.Log.Put_Line
136136
(Ctx.E.Current_Status'Image, CoAP_SPARK.Log.Error);
137137
RFLX.RFLX_Types.Free (Payload);
@@ -169,7 +169,7 @@ procedure CoAP_Client is
169169
pragma Assert (not CoAP_SPARK.Channel.Is_Valid (Skt));
170170

171171
CoAP_SPARK.Log.New_Line;
172-
if Ctx.E.Current_Status in RFLX.CoAP_Client.Session_Environment.OK then
172+
if Ctx.E.Current_Status in CoAP_SPARK.OK then
173173
CoAP_SPARK.Log.Put_Line ("RESPONSE: ");
174174

175175
case Ctx.E.Response_Codes.Code_Class is

0 commit comments

Comments
 (0)