зеркало из https://github.com/mozilla/Negatus.git
A few fixes, and no longer need the -fpermissive flag.
This commit is contained in:
Родитель
9adbe9376c
Коммит
2a9dfe16a5
|
@ -5,7 +5,6 @@ LD:=$(CXX)
|
|||
|
||||
CPPFLAGS=\
|
||||
-g \
|
||||
-fpermissive \
|
||||
$(shell nspr-config --cflags)
|
||||
|
||||
LDLIBS=$(shell nspr-config --libs) -lrt
|
||||
|
|
|
@ -55,7 +55,7 @@ BufferedSocket::readLine(std::stringstream& buf)
|
|||
void
|
||||
BufferedSocket::write(const char* buf, PRUint32 size)
|
||||
{
|
||||
PRInt32 numSent = PR_Send(mSocket, buf, size, 0, PR_INTERVAL_NO_WAIT);
|
||||
PR_Send(mSocket, buf, size, 0, PR_INTERVAL_NO_WAIT);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
CommandEventHandler::CommandLine::CommandLine(std::string line)
|
||||
: cmd("")
|
||||
{
|
||||
char linec[line.size()];
|
||||
char linec[line.size()+1];
|
||||
strcpy(linec, line.c_str());
|
||||
char* cmdc = strtok(linec, " \t");
|
||||
if (!cmdc)
|
||||
|
@ -585,7 +585,7 @@ CommandEventHandler::rm(std::vector<std::string>& args)
|
|||
{
|
||||
if (args.size() < 1)
|
||||
return agentWarnInvalidNumArgs(1);
|
||||
rm(args[0]);
|
||||
return rm(args[0]);
|
||||
}
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче