Skip to content
Snippets Groups Projects
Commit 66060cf0 authored by Hans-Werner Hilse's avatar Hans-Werner Hilse
Browse files

gluon-neighbour-info: Do not use error()

error() is a glibc specific function and should not be used in
code meant to be portable.
parent 1f3e66cf
No related branches found
No related tags found
No related merge requests found
......@@ -176,8 +176,10 @@ int main(int argc, char **argv) {
fprintf(stderr, "Invalid parameter %c ignored.\n", c);
}
if (request_string == NULL)
error(EXIT_FAILURE, 0, "No request string supplied");
if (request_string == NULL) {
fprintf(stderr, "No request string supplied");
exit(EXIT_FAILURE);
}
if (sse)
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