YYSTYPE.number is int64_t, so format with <inttypes.h>'s PRId64
authorguenther <guenther@openbsd.org>
Sun, 11 Oct 2015 07:16:01 +0000 (07:16 +0000)
committerguenther <guenther@openbsd.org>
Sun, 11 Oct 2015 07:16:01 +0000 (07:16 +0000)
ok yasuoka@

usr.sbin/npppd/npppd/parse.y

index b461140..23cf71c 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: parse.y,v 1.16 2015/02/17 05:12:51 miod Exp $ */
+/*     $OpenBSD: parse.y,v 1.17 2015/10/11 07:16:01 guenther Exp $ */
 
 /*
  * Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -29,6 +29,7 @@
 
 #include <ctype.h>
 #include <errno.h>
+#include <inttypes.h>
 #include <limits.h>
 #include <stdarg.h>
 #include <stdio.h>
@@ -591,7 +592,8 @@ mppekeylen  : NUMBER {
                        else if ($1 == 56)  $$ = NPPPD_MPPE_56BIT;
                        else if ($1 == 128) $$ = NPPPD_MPPE_128BIT;
                        else {
-                               yyerror("%d: unknown mppe key length", $$);
+                               yyerror("%"PRId64": unknown mppe key length",
+                                   $$);
                                YYERROR;
                        }
                }