Make gcc -Wall happy.
diff --git a/Objects/bufferobject.c b/Objects/bufferobject.c
index b2b7baa..9be1e43 100644
--- a/Objects/bufferobject.c
+++ b/Objects/bufferobject.c
@@ -82,7 +82,6 @@
PyBufferProcs *pb = base->ob_type->tp_as_buffer;
void *p;
int count;
- PyBufferObject *b;
if ( (*pb->bf_getsegcount)(base, NULL) != 1 )
{
@@ -221,18 +220,18 @@
if ( self->b_base == NULL )
{
- sprintf(buf, "<%s buffer ptr %lx, size %ld at %lx>",
+ sprintf(buf, "<%s buffer ptr %lx, size %d at %lx>",
status,
- self->b_ptr,
+ (long)self->b_ptr,
self->b_size,
(long)self);
}
else
{
- sprintf(buf, "<%s buffer for %lx, ptr %lx, size %ld at %lx>",
+ sprintf(buf, "<%s buffer for %lx, ptr %lx, size %d at %lx>",
status,
(long)self->b_base,
- self->b_ptr,
+ (long)self->b_ptr,
self->b_size,
(long)self);
}