diff options
author | Sebastian Rasmussen <sebras@hotmail.com> | 2009-07-06 02:09:52 +0200 |
---|---|---|
committer | Sebastian Rasmussen <sebras@hotmail.com> | 2009-07-06 02:09:52 +0200 |
commit | fd2fe9791264ff8ed8a9bf9d374e796bf011776e (patch) | |
tree | eaf15f9ca1073c4766daafd047e53765102d86e2 /apps/unix/x11pdf.c | |
parent | 270a50ae98b1efeee17ba745c4ccf0eba52a4a0c (diff) | |
download | mupdf-fd2fe9791264ff8ed8a9bf9d374e796bf011776e.tar.xz |
Use nil instead of 0 for pointers.
Diffstat (limited to 'apps/unix/x11pdf.c')
-rw-r--r-- | apps/unix/x11pdf.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/unix/x11pdf.c b/apps/unix/x11pdf.c index b8d7c267..28409c3f 100644 --- a/apps/unix/x11pdf.c +++ b/apps/unix/x11pdf.c @@ -178,9 +178,9 @@ void wincursor(pdfapp_t *app, int curs) void wintitle(pdfapp_t *app, char *s) { #ifdef X_HAVE_UTF8_STRING - Xutf8SetWMProperties(xdpy, xwin, s, s, 0, 0, 0, 0, 0); + Xutf8SetWMProperties(xdpy, xwin, s, s, nil, 0, nil, nil, nil); #else - XmbSetWMProperties(xdpy, xwin, s, s, 0, 0, 0, 0, 0); + XmbSetWMProperties(xdpy, xwin, s, s, nil, 0, nil, nil, nil); #endif } @@ -473,9 +473,9 @@ static void winawaitevent(struct timeval *tmo, struct timeval *tmo_at) FD_ZERO(&fds); FD_SET(x11fd, &fds); - if (select(x11fd + 1, &fds, 0, 0, tmo)) + if (select(x11fd + 1, &fds, nil, nil, tmo)) { - gettimeofday(&now, 0); + gettimeofday(&now, nil); timersub(tmo_at, &now, tmo); XNextEvent(xdpy, &xevt); } @@ -489,7 +489,7 @@ static void winsettmo(struct timeval *tmo, struct timeval *tmo_at) tmo->tv_sec = 2; tmo->tv_usec = 0; - gettimeofday(&now, 0); + gettimeofday(&now, nil); timeradd(&now, tmo, tmo_at); } @@ -584,7 +584,7 @@ int main(int argc, char **argv) case KeyPress: wasshowingpage = isshowingpage; - len = XLookupString(&xevt.xkey, buf, sizeof buf, &keysym, 0); + len = XLookupString(&xevt.xkey, buf, sizeof buf, &keysym, nil); if (len) onkey(buf[0]); onmouse(oldx, oldy, 0, 0, 0); |