summaryrefslogtreecommitdiffstats
path: root/ipc/unix_domain_socket_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ipc/unix_domain_socket_util.cc')
-rw-r--r--ipc/unix_domain_socket_util.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipc/unix_domain_socket_util.cc b/ipc/unix_domain_socket_util.cc
index d1ddd83..7405344 100644
--- a/ipc/unix_domain_socket_util.cc
+++ b/ipc/unix_domain_socket_util.cc
@@ -20,8 +20,8 @@
namespace IPC {
// Verify that kMaxSocketNameLength is a decent size.
-COMPILE_ASSERT(sizeof(((sockaddr_un*)0)->sun_path) >= kMaxSocketNameLength,
- BAD_SUN_PATH_LENGTH);
+static_assert(sizeof(((sockaddr_un*)0)->sun_path) >= kMaxSocketNameLength,
+ "sun_path is too long.");
namespace {