--- client/images.cpp +++ client/images.cpp @@ -285,8 +285,8 @@ { fprintf( stderr, -"ImgOpenData(): Warning: Unable to open TGA image data: 0x%.8x\n", - (u_int32_t)data +"ImgOpenData(): Warning: Unable to open TGA image data: %p\n", + data ); ImgUnload(img_num); return(-1); --- global/osw-x.cpp +++ global/osw-x.cpp @@ -8598,8 +8598,8 @@ /* Display */ fprintf( stderr, -" X server display connection pointer: 0x%.8x\n", - (u_int32_t)error_event->display +" X server display connection pointer: %p\n", + error_event->display ); /* Serial number */ --- widgets/wfile.cpp +++ widgets/wfile.cpp @@ -213,7 +213,7 @@ status = TgaReadFromData(data, td, gui->depth); if(status != TgaSuccess) { - fprintf(stderr, "WidgetLoadImageFromTgaData(): 0x%.8x: ", (u_int32_t)data); + fprintf(stderr, "WidgetLoadImageFromTgaData(): %p: ", data); switch(status) { case TgaNoBuffers: @@ -248,8 +248,8 @@ { fprintf( stderr, -"0x%.8x: Error: Unable to allocate GUI image.\n", - (u_int32_t)data +"%p: Error: Unable to allocate GUI image.\n", + data ); } else @@ -517,8 +517,8 @@ { fprintf( stderr, -"0x%.8x: Unable to open XPM data.\n", - (u_int32_t)data +"%p: Unable to open XPM data.\n", + data ); return(None); } --- widgets/wglobal.cpp +++ widgets/wglobal.cpp @@ -602,8 +602,8 @@ sprintf( s, -"WidgetDestroyGlobals(): Warning: %s widget #%i 0x%.8x was not destroyed.", - type_name, i, (u_int32_t)widget +"WidgetDestroyGlobals(): Warning: %s widget #%i %p was not destroyed.", + type_name, i, widget ); fprintf(stderr, "%s\n", s); free(s); @@ -1484,8 +1484,8 @@ default: fprintf( stderr, -"WidgetDestroy(): Widget 0x%.8x: Unsupported widget type (type=%i).\n", - (u_int32_t)widget, +"WidgetDestroy(): Widget %p: Unsupported widget type (type=%i).\n", + widget, type ); break; --- widgets/wlist.cpp +++ widgets/wlist.cpp @@ -2584,7 +2584,7 @@ return(w); #else - return(NULL); + return(None); #endif }