mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
Fix pblMapTest -Werror format string warnings.
Reported by: pointyhat (via erwin@)
This commit is contained in:
parent
7b6b9d302c
commit
14847e821c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=277594
55
databases/libpbl/files/patch-pblMapTest.c
Normal file
55
databases/libpbl/files/patch-pblMapTest.c
Normal file
@ -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 );
|
Loading…
Reference in New Issue
Block a user