Enable cpplint in pc/
Enable cpplint check in the PRESUBMIT for pc/ and fix all existing
warnings.
Bug: webrtc:5583
Change-Id: If39994692ab6f6f3c83c74f23850f02fdfe810e8
Reviewed-on: https://webrtc-review.googlesource.com/16540
Commit-Queue: Steve Anton <steveanton@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#20482}
diff --git a/pc/externalhmac.cc b/pc/externalhmac.cc
index 6c6d000..91f7412 100644
--- a/pc/externalhmac.cc
+++ b/pc/externalhmac.cc
@@ -80,7 +80,7 @@
return srtp_err_status_alloc_fail;
// Set pointers
- *a = (srtp_auth_t *)pointer;
+ *a = reinterpret_cast<srtp_auth_t*>(pointer);
// |external_hmac| is const and libsrtp expects |type| to be non-const.
// const conversion is required. |external_hmac| is constant because we don't
// want to increase global count in Chrome.
@@ -95,7 +95,8 @@
srtp_err_status_t external_hmac_dealloc(srtp_auth_t* a) {
// Zeroize entire state
- memset((uint8_t *)a, 0, sizeof(ExternalHmacContext) + sizeof(srtp_auth_t));
+ memset(reinterpret_cast<uint8_t*>(a), 0,
+ sizeof(ExternalHmacContext) + sizeof(srtp_auth_t));
// Free memory
delete[] a;