]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
libimcv: Use proper printf specifier for unsigned issuer and responder IDs
authorTobias Brunner <tobias@strongswan.org>
Tue, 7 May 2019 12:43:30 +0000 (14:43 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 8 May 2019 12:48:54 +0000 (14:48 +0200)
src/libimcv/seg/seg_contract.c

index 41aed583ac4ca888df1a23cceb22e4ae52a9b408..dfaaacf62c98e7e4e87f940343b7ec910856214b 100644 (file)
@@ -338,12 +338,12 @@ METHOD(seg_contract_t, get_info_string, void,
 
        if (this->is_issuer && request)
        {
-               written = snprintf(pos, len, "%s %d requests",
+               written = snprintf(pos, len, "%s %lu requests",
                                                  this->is_imc ? "IMC" : "IMV", this->issuer_id);
        }
        else
        {
-               written = snprintf(pos, len, "%s %d received",
+               written = snprintf(pos, len, "%s %lu received",
                                                   this->is_imc ? "IMC" : "IMV",
                                                   this->is_issuer ? this->issuer_id :
                                                                                         this->responder_id);
@@ -368,7 +368,7 @@ METHOD(seg_contract_t, get_info_string, void,
        if ((!this->is_issuer && this->issuer_id != TNC_IMVID_ANY) ||
                ( this->is_issuer && this->responder_id != TNC_IMVID_ANY))
        {
-               written = snprintf(pos, len, "from %s %d ",
+               written = snprintf(pos, len, "from %s %lu ",
                                                   this->is_imc ? "IMV" : "IMC",
                                                   this->is_issuer ? this->responder_id :
                                                                                         this->issuer_id);