pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel Cast size_t function and variable in printf and ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/ce3cb1f1e248
branches: trunk
changeset: 487272:ce3cb1f1e248
user: darcy <darcy%pkgsrc.org@localhost>
date: Wed Jan 12 10:55:36 2005 +0000
description:
Cast size_t function and variable in printf and use "%lu" to prevent
compiler warnings when size_t is not unsigned int.
diffstat:
devel/generate/distinfo | 4 ++--
devel/generate/patches/patch-aa | 6 +++---
devel/py-generate/distinfo | 4 ++--
devel/py-generate/patches/patch-aa | 6 +++---
4 files changed, 10 insertions(+), 10 deletions(-)
diffs (76 lines):
diff -r 67f083f60ef2 -r ce3cb1f1e248 devel/generate/distinfo
--- a/devel/generate/distinfo Wed Jan 12 06:02:29 2005 +0000
+++ b/devel/generate/distinfo Wed Jan 12 10:55:36 2005 +0000
@@ -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 -r 67f083f60ef2 -r ce3cb1f1e248 devel/generate/patches/patch-aa
--- a/devel/generate/patches/patch-aa Wed Jan 12 06:02:29 2005 +0000
+++ b/devel/generate/patches/patch-aa Wed Jan 12 10:55:36 2005 +0000
@@ -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 @@
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 @@
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++;
diff -r 67f083f60ef2 -r ce3cb1f1e248 devel/py-generate/distinfo
--- a/devel/py-generate/distinfo Wed Jan 12 06:02:29 2005 +0000
+++ b/devel/py-generate/distinfo Wed Jan 12 10:55:36 2005 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.4 2005/01/08 15:45:23 darcy Exp $
+$NetBSD: distinfo,v 1.5 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 -r 67f083f60ef2 -r ce3cb1f1e248 devel/py-generate/patches/patch-aa
--- a/devel/py-generate/patches/patch-aa Wed Jan 12 06:02:29 2005 +0000
+++ b/devel/py-generate/patches/patch-aa Wed Jan 12 10:55:36 2005 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.1 2005/01/08 15:45:24 darcy Exp $
+$NetBSD: patch-aa,v 1.2 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 @@
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 @@
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++;
Home |
Main Index |
Thread Index |
Old Index