* gcc4 build fix

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24756 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Karsten Heimrich
2008-04-02 19:17:59 +00:00
parent 9da0e4408d
commit e1a5b29760
3 changed files with 6 additions and 4 deletions
+2 -1
View File
@@ -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;
+2 -1
View File
@@ -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;