diff options
author | darcy <darcy> | 2005-01-12 10:55:36 +0000 |
---|---|---|
committer | darcy <darcy> | 2005-01-12 10:55:36 +0000 |
commit | e4c6ef4c8e6d04234d4d59e0574d31e5a9ecac90 (patch) | |
tree | 2fa1c87d5fb03d6e73ee51b2b29fdb75abab4528 /devel/generate | |
parent | e9159bc94559982dd8c33a66a17f26088e291a17 (diff) | |
download | pkgsrc-e4c6ef4c8e6d04234d4d59e0574d31e5a9ecac90.tar.gz |
Cast size_t function and variable in printf and use "%lu" to prevent
compiler warnings when size_t is not unsigned int.
Diffstat (limited to 'devel/generate')
-rw-r--r-- | devel/generate/distinfo | 4 | ||||
-rw-r--r-- | devel/generate/patches/patch-aa | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/devel/generate/distinfo b/devel/generate/distinfo index b04148af882..8a75424d008 100644 --- a/devel/generate/distinfo +++ b/devel/generate/distinfo @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.5 2005/01/08 15:43:55 darcy Exp $ +$NetBSD: distinfo,v 1.6 2005/01/12 10:55:36 darcy Exp $ SHA1 (generate-2.2.tgz) = fbd17b29226f683edc80f96b660c3e74fbec05c9 Size (generate-2.2.tgz) = 28661 bytes -SHA1 (patch-aa) = 5f371ec67af9cca7f4ba8858ad135cad2e42ea5f +SHA1 (patch-aa) = 2ceafdac084bc7e1cbc0ee55eac65091b21bf380 diff --git a/devel/generate/patches/patch-aa b/devel/generate/patches/patch-aa index d5805a4c1e8..81afd90c3a5 100644 --- a/devel/generate/patches/patch-aa +++ b/devel/generate/patches/patch-aa @@ -1,4 +1,4 @@ -$NetBSD: patch-aa,v 1.3 2005/01/08 15:43:55 darcy Exp $ +$NetBSD: patch-aa,v 1.4 2005/01/12 10:55:36 darcy Exp $ --- generate.c.orig 2005-01-04 08:15:47.000000000 -0500 +++ generate.c @@ -7,7 +7,7 @@ $NetBSD: patch-aa,v 1.3 2005/01/08 15:43:55 darcy Exp $ replace_macro(buf + 2, lenbuf, pre_param); - sprintf(dst, "%d", strlen(lenbuf)); -+ sprintf(dst, "%u", strlen(lenbuf)); ++ sprintf(dst, "%lu", (unsigned long) strlen(lenbuf)); continue; } @@ -16,7 +16,7 @@ $NetBSD: patch-aa,v 1.3 2005/01/08 15:43:55 darcy Exp $ p = pp; - sprintf(cur_line_str, "%d", xline); -+ sprintf(cur_line_str, "%u", xline); ++ sprintf(cur_line_str, "%lu", (unsigned long) xline); while (isspace((int) *p)) p++; |