diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-11-26 01:17:13 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-11-26 01:17:13 +0000 |
commit | 861db4204cb578bfff23c9f1fa9977cae8a628d1 (patch) | |
tree | 138639a11044b583590bf68c913e8e4e1f99761f /usr.sbin/mrouted/cfparse.y | |
parent | 0509ed2706dbc025ca31c88df49afd2463567d00 (diff) |
Replace log() with logit() since ISO C reserves log() for the math
library and gcc 3.x will complain. Replacement name taken from NetBSD.
espie@ OK.
Diffstat (limited to 'usr.sbin/mrouted/cfparse.y')
-rw-r--r-- | usr.sbin/mrouted/cfparse.y | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/mrouted/cfparse.y b/usr.sbin/mrouted/cfparse.y index 8f34d05eae8..f60c28bd000 100644 --- a/usr.sbin/mrouted/cfparse.y +++ b/usr.sbin/mrouted/cfparse.y @@ -188,7 +188,7 @@ stmt : error } tunnelmods { - log(LOG_INFO, 0, + logit(LOG_INFO, 0, "installing tunnel from %s to %s as vif #%u - rate=%d", inet_fmt($2, s1), inet_fmt($3, s2), numvifs, v->uv_rate_limit); @@ -398,7 +398,7 @@ fatal(char *fmt, ...) vsnprintf(buf, sizeof buf, fmt, ap); va_end(ap); - log(LOG_ERR,0,"%s: %s near line %d", configfilename, buf, lineno); + logit(LOG_ERR,0,"%s: %s near line %d", configfilename, buf, lineno); } static void @@ -411,14 +411,14 @@ warn(char *fmt, ...) vsnprintf(buf, sizeof buf, fmt, ap); va_end(ap); - log(LOG_WARNING,0,"%s: %s near line %d", configfilename, buf, lineno); + logit(LOG_WARNING,0,"%s: %s near line %d", configfilename, buf, lineno); } static void yyerror(s) char *s; { - log(LOG_ERR, 0, "%s: %s near line %d", configfilename, s, lineno); + logit(LOG_ERR, 0, "%s: %s near line %d", configfilename, s, lineno); } static char * @@ -566,7 +566,7 @@ config_vifs_from_file() if ((f = fopen(configfilename, "r")) == NULL) { if (errno != ENOENT) - log(LOG_ERR, errno, "can't open %s", configfilename); + logit(LOG_ERR, errno, "can't open %s", configfilename); return; } |