- changed return type
authorJan Hutter <jhutter@hsr.ch>
Wed, 30 Nov 2005 08:53:00 +0000 (08:53 -0000)
committerJan Hutter <jhutter@hsr.ch>
Wed, 30 Nov 2005 08:53:00 +0000 (08:53 -0000)
Source/charon/encoding/payloads/id_payload.c

index 073be79..0eae19f 100644 (file)
@@ -165,7 +165,14 @@ static void get_encoding_rules(private_id_payload_t *this, encoding_rule_t **rul
  */
 static payload_type_t get_payload_type(private_id_payload_t *this)
 {
-       return ((this->is_initiator) ? ID_INITIATOR : ID_RESPONDER);
+       if (this->is_initiator)
+       {
+               return ID_INITIATOR;
+       }
+       else
+       {
+               return ID_RESPONDER;
+       }
 }
 
 /**