Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit ea4b63f

Browse files
authored
Nit: use the constant. (#374)
1 parent 7063ccb commit ea4b63f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

opencensus/common/internal/hostname.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ std::string Hostname() {
5353
// SUSv2 says 255 is the limit for hostnames.
5454
char buf[256];
5555
if (gethostname(buf, sizeof(buf)) == -1) {
56-
return "unknown_hostname";
56+
return kUnknownHostname;
5757
}
5858
// gethostname() doesn't guarantee NUL termination.
5959
buf[sizeof(buf) - 1] = 0;

0 commit comments

Comments
 (0)