* AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: pppd.h,v 1.92 2007/06/19 02:08:35 carlsonj Exp $
+ * $Id: pppd.h,v 1.93 2008/06/03 12:06:37 paulus Exp $
*/
/*
void warn __P((char *, ...)); /* log a warning message */
void error __P((char *, ...)); /* log an error message */
void fatal __P((char *, ...)); /* log an error message and die(1) */
-void init_pr_log __P((char *, int)); /* initialize for using pr_log */
+void init_pr_log __P((const char *, int)); /* initialize for using pr_log */
void pr_log __P((void *, char *, ...)); /* printer fn, output to syslog */
void end_pr_log __P((void)); /* finish up after using pr_log */
void dump_packet __P((const char *, u_char *, int));
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#define RCSID "$Id: utils.c,v 1.24 2004/11/04 10:02:26 paulus Exp $"
+#define RCSID "$Id: utils.c,v 1.25 2008/06/03 12:06:37 paulus Exp $"
#include <stdio.h>
#include <ctype.h>
base = 10;
break;
default:
- *buf++ = '%'; --buflen;
- *buf++ = 'l'; --buflen;
+ OUTCHAR('%');
+ OUTCHAR('l');
--fmt; /* so %lz outputs %lz etc. */
continue;
}
void
init_pr_log(prefix, level)
- char *prefix;
+ const char *prefix;
int level;
{
linep = line;