From: Danny Al-Gaaf Date: Wed, 13 Feb 2013 12:14:02 +0000 (+0100) Subject: CephxProtocol.h: pass CryptoKey by reference to decode_decrypt() X-Git-Tag: v0.58~66^2~59 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a3970e56269a26016b99aed53af045df45a01109;p=ceph.git CephxProtocol.h: pass CryptoKey by reference to decode_decrypt() Fix issues found by cppcheck: [src/auth/cephx/CephxProtocol.h:469]: (performance) Function parameter 'key' should be passed by reference. Pass CryptoKey by reference as already done in encode_encrypt(). Signed-off-by: Danny Al-Gaaf --- diff --git a/src/auth/cephx/CephxProtocol.h b/src/auth/cephx/CephxProtocol.h index 38e0616b501..9386a410f95 100644 --- a/src/auth/cephx/CephxProtocol.h +++ b/src/auth/cephx/CephxProtocol.h @@ -466,7 +466,7 @@ void encode_encrypt_enc_bl(CephContext *cct, const T& t, const CryptoKey& key, } template -int decode_decrypt(CephContext *cct, T& t, const CryptoKey key, +int decode_decrypt(CephContext *cct, T& t, const CryptoKey& key, bufferlist::iterator& iter, std::string &error) { bufferlist bl_enc;