.cosmetics

git-svn-id: svn://ultimatepp.org/upp/trunk@8004 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-12-25 09:47:12 +00:00
parent c99da1dd27
commit 697606b0a7
2 changed files with 10 additions and 7 deletions

View file

@ -119,22 +119,24 @@ RpcGet RpcRequest::Execute()
request = XmlHeader();
request << XmlTag("methodCall")(XmlTag("methodName")(method) + FormatXmlRpcParams(data.out));
}
if(sLogRpcCalls)
if(sLogRpcCalls) {
if(sLogRpcCallsCompress)
RLOG("XmlRpc call request:\n" << CompressLog(request));
else
RLOG("XmlRpc call request:\n" << request);
}
String response;
New();
if(shorted)
response = RpcExecute(request, "", "127.0.0.1");
else
response = Post(request).Execute();
if(sLogRpcCalls)
if(sLogRpcCalls) {
if(sLogRpcCallsCompress)
RLOG("XmlRpc call response:\n" << CompressLog(response));
else
RLOG("XmlRpc call response:\n" << response);
}
RpcGet h;
if(IsNull(response)) {
faultCode = RPC_CLIENT_HTTP_ERROR;

View file

@ -798,11 +798,12 @@ static void LinuxBeep(const char *name)
}
String fn = "/usr/share/sounds/" + CurrentSoundTheme + "/stereo/dialog-" + name;
system(player + " -q " + fn + (FileExists(fn + ".ogg") ? ".ogg" :
FileExists(fn + ".oga") ? ".oga" :
FileExists(fn + ".wav") ? ".wav" :
".*")
+ " >/dev/null 2>/dev/null&");
IGNORE_RESULT(system(player + " -q " + fn +
(FileExists(fn + ".ogg") ? ".ogg" :
FileExists(fn + ".oga") ? ".oga" :
FileExists(fn + ".wav") ? ".wav" :
".*")
+ " >/dev/null 2>/dev/null&"));
}
#endif