aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr/gethostname_sysconf.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/lib/iomgr/gethostname_sysconf.cc')
-rw-r--r--src/core/lib/iomgr/gethostname_sysconf.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lib/iomgr/gethostname_sysconf.cc b/src/core/lib/iomgr/gethostname_sysconf.cc
index 8441e0615e..e099fbd388 100644
--- a/src/core/lib/iomgr/gethostname_sysconf.cc
+++ b/src/core/lib/iomgr/gethostname_sysconf.cc
@@ -25,9 +25,9 @@
#include <grpc/support/alloc.h>
-char *grpc_gethostname() {
+char* grpc_gethostname() {
size_t host_name_max = (size_t)sysconf(_SC_HOST_NAME_MAX);
- char *hostname = (char *)gpr_malloc(host_name_max);
+ char* hostname = (char*)gpr_malloc(host_name_max);
if (gethostname(hostname, host_name_max) != 0) {
gpr_free(hostname);
return NULL;