aboutsummaryrefslogtreecommitdiffstats
path: root/databases/libpbl/files/patch-pblMapTest.c
diff options
context:
space:
mode:
Diffstat (limited to 'databases/libpbl/files/patch-pblMapTest.c')
-rw-r--r--databases/libpbl/files/patch-pblMapTest.c55
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 );