Fix wrong behaviour of the register-status command on ARM architecture.

This commit is contained in:
Ghislain MARY 2012-11-13 14:50:24 +01:00
parent abb881cc2c
commit 1cb97f1b51
2 changed files with 2 additions and 2 deletions

View file

@ -65,8 +65,8 @@ void RegisterStatusCommand::exec(Daemon *app, const char *args) {
}
app->sendResponse(response);
} else {
ist.clear();
ist.str(param);
ist.seekg(0);
ist >> pid;
if (ist.fail()) {
app->sendResponse(Response("Incorrect parameter.", Response::Error));

View file

@ -32,8 +32,8 @@ void UnregisterCommand::exec(Daemon *app, const char *args) {
}
}
} else {
ist.clear();
ist.str(param);
ist.seekg(0);
ist >> pid;
if (ist.fail()) {
app->sendResponse(Response("Incorrect parameter.", Response::Error));