* gcc4 build fix
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24756 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include <grp.h>
|
||||
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <new>
|
||||
@@ -108,7 +109,7 @@ init_group_db()
|
||||
if (sGroupDB != NULL)
|
||||
return sGroupDB;
|
||||
|
||||
sGroupDB = new(nothrow) GroupDB;
|
||||
sGroupDB = new(std::nothrow) GroupDB;
|
||||
if (sGroupDB == NULL)
|
||||
return NULL;
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#include <pwd.h>
|
||||
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <new>
|
||||
@@ -73,7 +74,7 @@ init_passwd_db()
|
||||
if (sPasswdDB != NULL)
|
||||
return sPasswdDB;
|
||||
|
||||
sPasswdDB = new(nothrow) PasswdDB;
|
||||
sPasswdDB = new(std::nothrow) PasswdDB;
|
||||
if (sPasswdDB == NULL)
|
||||
return NULL;
|
||||
|
||||
|
||||
@@ -520,7 +520,7 @@ status_t
|
||||
PasswdDB::HandleEntry(const char* name, const char* password, uid_t uid,
|
||||
gid_t gid, const char* home, const char* shell, const char* realName)
|
||||
{
|
||||
PasswdDBEntry* entry = new(nothrow) PasswdDBEntry();
|
||||
PasswdDBEntry* entry = new(std::nothrow) PasswdDBEntry();
|
||||
if (entry == NULL || !entry->Init(name, password, uid, gid, home, shell,
|
||||
realName)) {
|
||||
delete entry;
|
||||
@@ -692,7 +692,7 @@ status_t
|
||||
GroupDB::HandleEntry(const char* name, const char* password, gid_t gid,
|
||||
const char* const* members, int memberCount)
|
||||
{
|
||||
GroupDBEntry* entry = new(nothrow) GroupDBEntry();
|
||||
GroupDBEntry* entry = new(std::nothrow) GroupDBEntry();
|
||||
if (entry == NULL || !entry->Init(name, password, gid, members,
|
||||
memberCount)) {
|
||||
delete entry;
|
||||
|
||||
Reference in New Issue
Block a user