Skip to content
Snippets Groups Projects
Commit b91115e8 authored by Nils Schneider's avatar Nils Schneider
Browse files

Merge pull request #409 from hwhw/master

Do not use error() in gluon-neighbour-info
parents 1f3e66cf 66060cf0
No related branches found
No related tags found
No related merge requests found
...@@ -176,8 +176,10 @@ int main(int argc, char **argv) { ...@@ -176,8 +176,10 @@ int main(int argc, char **argv) {
fprintf(stderr, "Invalid parameter %c ignored.\n", c); fprintf(stderr, "Invalid parameter %c ignored.\n", c);
} }
if (request_string == NULL) if (request_string == NULL) {
error(EXIT_FAILURE, 0, "No request string supplied"); fprintf(stderr, "No request string supplied");
exit(EXIT_FAILURE);
}
if (sse) if (sse)
fputs("Content-Type: text/event-stream\n\n", stdout); fputs("Content-Type: text/event-stream\n\n", stdout);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment