diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2012-01-22 22:01:07 -0800 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2012-01-22 22:01:07 -0800 |
commit | b093ed77fbab09bd474094898719ed6346d30d45 (patch) | |
tree | 592caec6d8d1d6de03aacae4f444cce28594b167 | |
parent | 702e4ff9f5fbfae4aecba09f8c735dc97bac1b59 (diff) |
Build fix for int-pointer cast errors
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r-- | src/XawIm.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/XawIm.c b/src/XawIm.c index b01f0d0..82a94b1 100644 --- a/src/XawIm.c +++ b/src/XawIm.c @@ -141,14 +141,14 @@ 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; @@ -252,14 +252,14 @@ ConfigureCB(Widget w, XtPointer closure, XEvent *event) } } -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; @@ -1321,12 +1321,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 ); |