diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2001-07-06 23:51:30 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2001-07-06 23:51:30 +0000 |
commit | 58f58b2eda4878fffccadb269c17fd90130f8b2d (patch) | |
tree | dc2b2e1fc489c0df167ea3c88f93747f60c2d3c5 | |
parent | 36abeb0e87f060d8e38074ae397eb3e64f23d64c (diff) |
Fix warning on, use "%lu" to print a size_t since it is a u_long
-rw-r--r-- | lib/libkeynote/keynote.y | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libkeynote/keynote.y b/lib/libkeynote/keynote.y index f49ebb15ed1..9f2fde6406e 100644 --- a/lib/libkeynote/keynote.y +++ b/lib/libkeynote/keynote.y @@ -1,4 +1,4 @@ -/* $OpenBSD: keynote.y,v 1.8 2000/10/09 23:41:46 angelos Exp $ */ +/* $OpenBSD: keynote.y,v 1.9 2001/07/06 23:51:29 millert Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@dsl.cis.upenn.edu) * @@ -530,9 +530,9 @@ stringexp: str EQ str { if (i == 0) { #if !defined(HAVE_SNPRINTF) - sprintf(grp, "%d", preg.re_nsub); + sprintf(grp, "%lu", preg.re_nsub); #else /* !HAVE_SNPRINTF */ - snprintf(grp, 3, "%d", preg.re_nsub); + snprintf(grp, 3, "%lu", preg.re_nsub); #endif /* !HAVE_SNPRINTF */ if (keynote_env_add("_0", grp, &keynote_temp_list, 1, 0) != RESULT_TRUE) |