summaryrefslogtreecommitdiff
path: root/zwgc/xshow.c
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@mit.edu>2009-03-22 18:59:56 +0000
committerGravatar Karl Ramm <kcr@mit.edu>2009-03-22 18:59:56 +0000
commit312324cc64cbb918e47526056de8c9c8d0693f79 (patch)
tree190d9e31f5b5424fccbebe6f993a07a53674e5e7 /zwgc/xshow.c
parent2b0255b2989113b5889dd59d3a52a46980e26b9a (diff)
more cleanup
Diffstat (limited to 'zwgc/xshow.c')
-rw-r--r--zwgc/xshow.c5
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);