aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/support
diff options
context:
space:
mode:
authorGravatar kwasimensah <kmensah@google.com>2017-11-16 15:07:00 -0500
committerGravatar GitHub <noreply@github.com>2017-11-16 15:07:00 -0500
commit0bf12cfd32f72be119a4c64433f8de13b9354847 (patch)
tree6352f05dcbddfbcda259b9c0c2d62a24067446ce /src/core/lib/support
parent0d12c0ceabe7e91538451beb5a0363655148b404 (diff)
Fix clang-format issues
Diffstat (limited to 'src/core/lib/support')
-rw-r--r--src/core/lib/support/cpu_posix.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/lib/support/cpu_posix.cc b/src/core/lib/support/cpu_posix.cc
index 832818aac5..c9dbc0d5d9 100644
--- a/src/core/lib/support/cpu_posix.cc
+++ b/src/core/lib/support/cpu_posix.cc
@@ -49,7 +49,7 @@ unsigned gpr_cpu_num_cores(void) {
return (unsigned)ncpus;
}
-static void delete_thread_id_key(void *value) {
+static void delete_thread_id_key(void* value) {
if (value) {
gpr_free(value);
}
@@ -68,10 +68,10 @@ unsigned gpr_cpu_current_cpu(void) {
static gpr_once once = GPR_ONCE_INIT;
gpr_once_init(&once, init_thread_id_key);
- unsigned int *thread_id =
- static_cast<unsigned int *>(pthread_getspecific(thread_id_key));
+ unsigned int* thread_id =
+ static_cast<unsigned int*>(pthread_getspecific(thread_id_key));
if (thread_id == nullptr) {
- thread_id = static_cast<unsigned int *>(gpr_malloc(sizeof(unsigned int)));
+ thread_id = static_cast<unsigned int*>(gpr_malloc(sizeof(unsigned int)));
pthread_setspecific(thread_id_key, thread_id);
}