8197408: Bad pointer comparison and small cleanup in os_linux.cpp

Reviewed-by: bobv, stuefe
This commit is contained in:
Robbin Ehn 2018-02-27 14:15:30 +01:00
parent 8241f85b85
commit 5287d9a366
4 changed files with 146 additions and 82 deletions

View file

@ -414,9 +414,9 @@ void OSContainer::init() {
}
char * OSContainer::container_type() {
const char * OSContainer::container_type() {
if (is_containerized()) {
return (char *)"cgroupv1";
return "cgroupv1";
} else {
return NULL;
}