index() was marked as obsolete by susv3, and isn't available on uClibc in some configurations, so use the equivalent strchr() instead:
http://pubs.opengroup.org/onlinepubs/009695399/functions/index.html Signed-off-by: Peter Korsgaard <[email protected]> --- nbd-server.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/nbd-server.c b/nbd-server.c index 4bbf413..810673e 100644 --- a/nbd-server.c +++ b/nbd-server.c @@ -324,7 +324,7 @@ int authorized_client(CLIENT *opts) { inet_aton(opts->clientname, &client); while (fgets(line,LINELEN,f)!=NULL) { - if((tmp=index(line, '/'))) { + if((tmp=strchr(line, '/'))) { if(strlen(line)<=tmp-line) { msg4(LOG_CRIT, ERRMSG, line, opts->server->authname); return 0; -- 1.7.7.1 ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ Nbd-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nbd-general
