summaryrefslogtreecommitdiff
path: root/apps/unix
diff options
context:
space:
mode:
Diffstat (limited to 'apps/unix')
-rw-r--r--apps/unix/x11pdf.c6
-rw-r--r--apps/unix/ximage.c2
2 files changed, 4 insertions, 4 deletions
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 */