diff options
Diffstat (limited to 'zwgc/xshow.c')
-rw-r--r-- | zwgc/xshow.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/zwgc/xshow.c b/zwgc/xshow.c index bb7415f..20bca23 100644 --- a/zwgc/xshow.c +++ b/zwgc/xshow.c @@ -24,6 +24,7 @@ static const char rcsid_xshow_c[] = "$Id$"; #include <X11/Xlib.h> #include <X11/Xutil.h> #include <X11/Xresource.h> +#include <zephyr/zephyr.h> #include "pointer_dictionary.h" #include "new_memory.h" #include "new_string.h" @@ -141,7 +142,7 @@ fixup_and_draw(Display *dpy, int line, block=0; int maxwidth=0, chars=0, maxascent, maxdescent; - int ssize, lsize,csize, rsize, width; + int ssize, lsize,csize, rsize, width = 0; int i, ascent, descent; int yofs = internal_border_width; @@ -607,7 +608,7 @@ plus_window_deletions(ZNotice_t *notice) done = 1; tmp = bottom_gram; while (tmp) { - if (tmp->notice == (char *)notice) { + if (tmp->notice == notice) { fry = tmp; tmp = tmp->above; xdestroygram(dpy, fry->w, desc_context, fry); |