X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fplugins%2Fradius%2Fradiusclient%2Flib%2Fstrerror.c;fp=pppd%2Fplugins%2Fradius%2Fradiusclient%2Flib%2Fstrerror.c;h=0000000000000000000000000000000000000000;hb=4abe4296f0eddbb2b6ff11dbbd27100156c85f87;hp=bb51a57bc8266a74e2c0c75bd1bb812f146d9d3f;hpb=4b9bf9ae2701487191810e564aaa4672eb95130e;p=ppp.git diff --git a/pppd/plugins/radius/radiusclient/lib/strerror.c b/pppd/plugins/radius/radiusclient/lib/strerror.c deleted file mode 100644 index bb51a57..0000000 --- a/pppd/plugins/radius/radiusclient/lib/strerror.c +++ /dev/null @@ -1,40 +0,0 @@ -/* - * $Id: strerror.c,v 1.2 2002/02/27 15:51:20 dfs Exp $ - * - * Copyright (C) 1996 Lars Fenneberg and Christian Graefe - * - * This file is provided under the terms and conditions of the GNU general - * public license, version 2 or any later version, incorporated herein by - * reference. - * - */ - -#include "config.h" -#include "includes.h" - -/* - * if we're missing strerror, these are mostly not defined either - */ -extern int sys_nerr; -extern char *sys_errlist[]; - -/* - * Function: strerror - * - * Purpose: implements strerror for systems which lack it. if these - * systems even lack sys_errlist, you loose... - * - */ - - -char *strerror(int err) -{ - static char buf[32]; - - if (err >= 0 && err < sys_nerr) - return sys_errlist[err]; - else { - sprintf(buf, "unknown error: %d", errno); - return buf; - } -}