X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fplugins%2Fradius%2Fradiusclient%2Flib%2Flog.c;fp=pppd%2Fplugins%2Fradius%2Fradiusclient%2Flib%2Flog.c;h=0000000000000000000000000000000000000000;hb=4abe4296f0eddbb2b6ff11dbbd27100156c85f87;hp=917b90728299578ca1132110f2baeb5fe6501315;hpb=4b9bf9ae2701487191810e564aaa4672eb95130e;p=ppp.git diff --git a/pppd/plugins/radius/radiusclient/lib/log.c b/pppd/plugins/radius/radiusclient/lib/log.c deleted file mode 100644 index 917b907..0000000 --- a/pppd/plugins/radius/radiusclient/lib/log.c +++ /dev/null @@ -1,53 +0,0 @@ -/* - * $Id: log.c,v 1.2 2002/02/27 15:51:20 dfs Exp $ - * - * Copyright (C) 1995,1996,1997 Lars Fenneberg - * - * See the file COPYRIGHT for the respective terms and conditions. - * If the file is missing contact me at lf@elemental.net - * and I'll send you a copy. - * - */ - -#include -#include -#include - -/* - * Function: rc_openlog - * - * Purpose: open log - * - * Arguments: identification string - * - * Returns: nothing - * - */ - -void rc_openlog(char *ident) -{ - openlog(ident, LOG_PID, RC_LOG_FACILITY); -} - -/* - * Function: rc_log - * - * Purpose: log information - * - * Arguments: priority (just like syslog), rest like printf - * - * Returns: nothing - * - */ - -void rc_log(int prio, const char *format, ...) -{ - char buff[1024]; - va_list ap; - - va_start(ap,format); - vsnprintf(buff, sizeof(buff), format, ap); - va_end(ap); - - syslog(prio, "%s", buff); -}