From 12ddfc8eca5323feb758a7966ca51a3b52279316 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 29 Nov 2009 16:54:23 +0100 Subject: Add some braces and fix up double-indentation on multi-line if/while expressions. --- apps/unix/x11pdf.c | 6 +++--- apps/unix/ximage.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/unix') diff --git a/apps/unix/x11pdf.c b/apps/unix/x11pdf.c index ac4fe6d6..68c93ac1 100644 --- a/apps/unix/x11pdf.c +++ b/apps/unix/x11pdf.c @@ -472,7 +472,7 @@ static void usage(void) static void winawaitevent(struct timeval *tmo, struct timeval *tmo_at) { if (tmo_at->tv_sec == 0 && tmo_at->tv_usec == 0 && - tmo->tv_sec == 0 && tmo->tv_usec == 0) + tmo->tv_sec == 0 && tmo->tv_usec == 0) XNextEvent(xdpy, &xevt); else { @@ -568,7 +568,7 @@ int main(int argc, char **argv) winawaitevent(&tmo, &tmo_at); if (tmo_at.tv_sec != 0 && tmo_at.tv_usec != 0 && - tmo.tv_sec == 0 && tmo.tv_usec == 0) + tmo.tv_sec == 0 && tmo.tv_usec == 0) { /* redraw page */ winblit(&gapp); @@ -587,7 +587,7 @@ int main(int argc, char **argv) if (gapp.image) { if (xevt.xconfigure.width != reqw || - xevt.xconfigure.height != reqh) + xevt.xconfigure.height != reqh) gapp.shrinkwrap = 0; } pdfapp_onresize(&gapp, diff --git a/apps/unix/ximage.c b/apps/unix/ximage.c index 5b03f559..90116026 100644 --- a/apps/unix/ximage.c +++ b/apps/unix/ximage.c @@ -364,7 +364,7 @@ ximage_init(Display *display, int screen, Visual *visual) /* identify code for MIT-SHM extension */ if (XQueryExtension(display, "MIT-SHM", &major, &event, &error) && - XShmQueryExtension(display)) + XShmQueryExtension(display)) info.shmcode = major; /* intercept errors looking for SHM code */ -- cgit v1.2.3