summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrian <brian@cvs.openbsd.org>2002-06-15 08:02:42 +0000
committerbrian <brian@cvs.openbsd.org>2002-06-15 08:02:42 +0000
commitb0134880aace06cfbbee085b056a93391a6da9af (patch)
treebbdb61fda69141fb229bae64abf5ec1af60d01e9
parent4ad10d3037d1445664535c68d99618d832f13ff7 (diff)
Cast a format param
-rw-r--r--usr.sbin/ppp/ppp/fsm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/ppp/fsm.c b/usr.sbin/ppp/ppp/fsm.c
index 03e544070f3..73f73142ef7 100644
--- a/usr.sbin/ppp/ppp/fsm.c
+++ b/usr.sbin/ppp/ppp/fsm.c
@@ -25,7 +25,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $OpenBSD: fsm.c,v 1.22 2002/06/15 01:33:23 brian Exp $
+ * $OpenBSD: fsm.c,v 1.23 2002/06/15 08:02:41 brian Exp $
*/
#include <sys/param.h>
@@ -1144,8 +1144,8 @@ fsm_readopt(u_char **cp)
*cp += o->hdr.len;
if (o->hdr.len > sizeof(struct fsm_opt)) {
- log_Printf(LogERROR, "Warning: Truncating option length from %d to %ld\n",
- o->hdr.len, sizeof(struct fsm_opt));
+ log_Printf(LogERROR, "Warning: Truncating option length from %d to %d\n",
+ o->hdr.len, (int)sizeof(struct fsm_opt));
o->hdr.len = sizeof(struct fsm_opt);
}