diff options
author | mandree <mandree@FreeBSD.org> | 2011-07-12 18:37:24 +0800 |
---|---|---|
committer | mandree <mandree@FreeBSD.org> | 2011-07-12 18:37:24 +0800 |
commit | d27c816f07dc732648c0932794138098ce5f2aac (patch) | |
tree | cb1386ad92777f768c2f20f19cdbffa0d39a64e1 /databases | |
parent | 24c376be22a4f1be1447246ac26e84413177aeea (diff) | |
download | freebsd-ports-graphics-d27c816f07dc732648c0932794138098ce5f2aac.tar.gz freebsd-ports-graphics-d27c816f07dc732648c0932794138098ce5f2aac.tar.zst freebsd-ports-graphics-d27c816f07dc732648c0932794138098ce5f2aac.zip |
Fix pblMapTest -Werror format string warnings.
Reported by: pointyhat (via erwin@)
Diffstat (limited to 'databases')
-rw-r--r-- | databases/libpbl/files/patch-pblMapTest.c | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/databases/libpbl/files/patch-pblMapTest.c b/databases/libpbl/files/patch-pblMapTest.c new file mode 100644 index 00000000000..ea9f367f1b0 --- /dev/null +++ b/databases/libpbl/files/patch-pblMapTest.c @@ -0,0 +1,55 @@ +--- pblMapTest.c~ 2011-07-12 12:35:02.000000000 +0200 ++++ pblMapTest.c 2011-07-12 12:34:29.000000000 +0200 +@@ -120,44 +120,44 @@ + + data = (char*)pblMapGetStr( map, "123", &size ); + fprintf( stdout, "pblMapGetStr( map, 123, &size ) size = %lu data = %s\n", +- size, data ); ++ (unsigned long)size, data ); + + data = (char*)pblMapGetStr( map, "124", &size ); + fprintf( stdout, "pblMapGetStr( map, 124, &size ) size = %lu data = %s\n", +- size, data ); ++ (unsigned long)size, data ); + + data = (char*)pblMapGetStr( map, "not there", &size ); + fprintf( stdout, + "pblMapGetStr( map, not there, &size ) size = %lu data = %p\n", +- size, data ); ++ (unsigned long)size, data ); + + data = (char*)pblMapPutStrStr( map, "123", "123_3", &size ); + fprintf( + stdout, + "pblMapPutStrStr( map, 123, 123_3, &size ) size = %lu data = %s\n", +- size, data ); ++ (unsigned long)size, data ); + PBL_FREE(data); + + data = (char*)pblMapGetStr( map, "123", &size ); + fprintf( stdout, "pblMapGetStr( map, 123, &size ) size = %lu data = %s\n", +- size, data ); ++ (unsigned long)size, data ); + + data = (char*)pblMapPutStrStr( map, "125", "125", &size ); + fprintf( stdout, + "pblMapPutStrStr( map, 125, 125, &size ) size = %lu data = %p\n", +- size, data ); ++ (unsigned long)size, data ); + PBL_FREE(data); + + data = (char*)pblMapRemoveStr( map, "125", &size ); + fprintf( stdout, +- "pblMapRemoveStr( map, 125, &size ) size = %lu data = %s\n", size, ++ "pblMapRemoveStr( map, 125, &size ) size = %lu data = %s\n", (unsigned long)size, + data ); + PBL_FREE(data); + + data = (char*)pblMapRemoveStr( map, "not there", &size ); + fprintf( stdout, + "pblMapRemoveStr( map, not there, &size ) size = %lu data = %p\n", +- size, data ); ++ (unsigned long)size, data ); + + rc = pblMapSize( map ); + fprintf( stdout, "pblMapSize( map ) rc = %d\n", rc ); |