[uClibc]pppd 2.4.1 + pppoe

Erik Andersen andersen at codepoet.org
Mon Mar 4 20:26:47 UTC 2002


On Mon Mar 04, 2002 at 01:08:19PM -0700, Erik wrote:
> It looks to be trivial to implement though -- something like the
> following should do (entirely untested):

err.  Lets try that again (still entirely untested):

extern void error (int status, int errnum, const char *format, ...)
{
    va_list p;
    va_start(p, format);
    vfprintf(stderr, format, p);
    va_end(p);
    if (errnum != 0) {
	fprintf(stderr, ": %s\n, strerror(errnum));
    } else {
	fprintf(stderr, "\n");
    }
    if (status != 0) {
	exit(status);
    }
}

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the uClibc mailing list