From 66060cf08a79c8c5fc7df2dc3049875ede20819a Mon Sep 17 00:00:00 2001 From: Hans-Werner Hilse Date: Sun, 5 Jul 2015 22:25:54 +0200 Subject: [PATCH] gluon-neighbour-info: Do not use error() error() is a glibc specific function and should not be used in code meant to be portable. --- package/gluon-neighbour-info/src/gluon-neighbour-info.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/package/gluon-neighbour-info/src/gluon-neighbour-info.c b/package/gluon-neighbour-info/src/gluon-neighbour-info.c index d8536de6..192b736e 100644 --- a/package/gluon-neighbour-info/src/gluon-neighbour-info.c +++ b/package/gluon-neighbour-info/src/gluon-neighbour-info.c @@ -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);