ref: 492958f08e2e9573679973cdd8119b95a57f8889
parent: 8c4a02a29b618a6779447316ec0a47ec1c8f3d33
author: mischief <mischief@offblast.org>
date: Mon Feb 3 19:16:36 EST 2014
libpanel: remove pointless pointer casts
--- a/sys/src/cmd/mothra/libpanel/mem.c
+++ b/sys/src/cmd/mothra/libpanel/mem.c
@@ -25,7 +25,7 @@
return v;
}
void pl_unexpected(Panel *g, char *rou){
- fprint(2, "%s called unexpectedly (%s %#p)\n", rou, g->kind, (uintptr)g);
+ fprint(2, "%s called unexpectedly (%s %#p)\n", rou, g->kind, g);
abort();
}
void pl_drawerror(Panel *g){
@@ -62,7 +62,7 @@
Panel *pl_newpanel(Panel *parent, int ndata){
Panel *v;
if(parent && parent->flags&LEAF){
- fprint(2, "newpanel: can't create child of %s %#p\n", parent->kind, (uintptr)parent);
+ fprint(2, "newpanel: can't create child of %s %#p\n", parent->kind, parent);
exits("bad newpanel");
}
v=pl_emalloc(sizeof(Panel));