[UDP-HTTP] "NoResults" instead of "NoResult"

Set the explanation to "NoResults" when a request is received but no
results were read yet.
This commit is contained in:
Matteo Cypriani 2013-09-13 11:31:11 -04:00
parent 5435fd8e68
commit c48ee0c555
2 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ The HTTP requests currently implemented are listed bellow.
Answer in case of error:
``` Results;NOK;Explanation
``Explanation`` is "NoResult" if no results were received from OwlPS
``Explanation`` is “NoResults” if no results were received from OwlPS
Positioner yet.
Normal answer:

View File

@ -449,7 +449,7 @@ void prepare_answer(int request_id)
if (! results)
{
char answer_end[] = ";NOK;NoResult" ;
char answer_end[] = ";NOK;NoResults" ;
strncpy(answer + answer_strlen, answer_end,
strlen(answer_end)) ;
answer_strlen += strlen(answer_end) ;
@ -499,7 +499,7 @@ void prepare_answer(int request_id)
if (! results)
{
char answer_end[] = ";NOK;NoResult" ;
char answer_end[] = ";NOK;NoResults" ;
strncpy(answer + answer_strlen, answer_end,
strlen(answer_end)) ;
answer_strlen += strlen(answer_end) ;