insignificant typo and update of generated code keysync
authorEdouard Tisserant <edouard@pep-project.org>
Mon, 12 Sep 2016 22:15:51 +0200
branchkeysync
changeset 1159ad1ee2ba1504
parent 1158 91f23957e964
child 1160 a176739cd3c3
insignificant typo and update of generated code
src/sync_driver.c
src/sync_impl.c
     1.1 --- a/src/sync_driver.c	Mon Sep 12 14:06:01 2016 +0200
     1.2 +++ b/src/sync_driver.c	Mon Sep 12 22:15:51 2016 +0200
     1.3 @@ -17,18 +17,22 @@
     1.4  
     1.5      while(true)
     1.6      {
     1.7 +        Identity _partner = partner ? identity_dup(partner) : NULL;
     1.8 +
     1.9          DeviceState_state new_state = fsm_DeviceState(session,
    1.10 -            session->sync_state, event, partner, extra);
    1.11 +            session->sync_state, event, _partner, extra);
    1.12 +
    1.13          if (new_state == DeviceState_state_invalid_out_of_memory)
    1.14              return PEP_OUT_OF_MEMORY;
    1.15 +
    1.16          if (new_state < 0)
    1.17              return PEP_SYNC_STATEMACHINE_ERROR - new_state;
    1.18          
    1.19          if (new_state == session->sync_state)
    1.20              break;
    1.21 -        else
    1.22 -            event = Init;
    1.23  
    1.24 +        event = Init;
    1.25 +        extra = NULL;
    1.26          session->sync_state = new_state;
    1.27      } 
    1.28  
     2.1 --- a/src/sync_impl.c	Mon Sep 12 14:06:01 2016 +0200
     2.2 +++ b/src/sync_impl.c	Mon Sep 12 22:15:51 2016 +0200
     2.3 @@ -55,11 +55,11 @@
     2.4              return PEP_SYNC_ILLEGAL_MESSAGE;
     2.5      }
     2.6  
     2.7 -    PEP_STATUS result = fsm_DeviceState_inject(session, event, partner, extra);
     2.8 +    PEP_STATUS status = fsm_DeviceState_inject(session, event, partner, extra);
     2.9  
    2.10      free_identity(partner);
    2.11  
    2.12 -    return result;
    2.13 +    return status;
    2.14  }
    2.15  
    2.16  PEP_STATUS receive_DeviceState_msg(PEP_SESSION session, message *src, PEP_rating rating)