summaryrefslogtreecommitdiff
path: root/src/XawIm.c
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2011-11-01 20:47:34 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2011-11-01 20:47:34 -0700
commit49c0a2441946f0d70fbd2612f193c95b84dde102 (patch)
treee5977093a88d5d4d88f9ede0bab35504c45ab55c /src/XawIm.c
parentfe00db0ecafd95f6e1353b1d5f11ee6012a9b64c (diff)
downloadxorg-lib-libXaw-49c0a2441946f0d70fbd2612f193c95b84dde102.tar.gz
Build fix for -Werror=pointer-to-int-cast
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'src/XawIm.c')
-rw-r--r--src/XawIm.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/XawIm.c b/src/XawIm.c
index d1da5ae..7a7152f 100644
--- a/src/XawIm.c
+++ b/src/XawIm.c
@@ -184,14 +184,14 @@ static VendorShellWidget SearchVendorShell(Widget w)
return(NULL);
}
-static XContext extContext = (XContext)NULL;
+static XContext extContext = (XContext)0;
static XawVendorShellExtPart *
SetExtPart(VendorShellWidget w, XawVendorShellExtWidget vew)
{
contextDataRec *contextData;
- if (extContext == (XContext)NULL) extContext = XUniqueContext();
+ if (extContext == (XContext)0) extContext = XUniqueContext();
contextData = XtNew(contextDataRec);
contextData->parent = (Widget)w;
@@ -296,13 +296,13 @@ ConfigureCB(Widget w, XtPointer closure, XEvent *event, Boolean *unused)
}
}
-static XContext errContext = (XContext)NULL;
+static XContext errContext = (XContext)0;
static Widget SetErrCnxt(Widget w, XIM xim)
{
contextErrDataRec *contextErrData;
- if (errContext == (XContext)NULL) errContext = XUniqueContext();
+ if (errContext == (XContext)0) errContext = XUniqueContext();
contextErrData = XtNew(contextErrDataRec);
contextErrData->widget = w;
@@ -1407,12 +1407,12 @@ Destroy(Widget w, XawVendorShellExtPart *ve)
return;
XtFree( (char*) ve->im.resources );
- if (extContext != (XContext)NULL &&
+ if (extContext != (XContext)0 &&
!XFindContext (XtDisplay (w), (Window)w,
extContext, (XPointer*)&contextData))
XtFree( (char*) contextData );
- if (errContext != (XContext)NULL &&
+ if (errContext != (XContext)0 &&
!XFindContext (XDisplayOfIM( ve->im.xim ), (Window) ve->im.xim,
errContext, (XPointer*) &contextErrData))
XtFree( (char*) contextErrData );