summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2012-03-29 17:33:32 -0400
committerMatt Turner <mattst88@gmail.com>2012-03-29 18:37:11 -0400
commit39bdb78ac3d4219669a160d16cedc75a0c9a7ae1 (patch)
treef79388b9484a0d8e21fc62c9b8a47d7b3dd16f80
parentddf8ae9731e546558b94151c6ecd3ca29ae55ea9 (diff)
XawIm.c: silence incompatible pointer type warnings
Makes code for _XawImCallVendorShellExtResize identical to libXaw. Fixes XawIm.c: In function '_XawImCallVendorShellExtResize': XawIm.c:1554:2: warning: passing argument 1 of 'XawVendorShellExtResize' from incompatible pointer type [enabled by default] XawIm.c:93:13: note: expected 'Widget' but argument is of type 'VendorShellWidget' Signed-off-by: Matt Turner <mattst88@gmail.com>
-rw-r--r--src/XawIm.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/XawIm.c b/src/XawIm.c
index 00562b5..78d116f 100644
--- a/src/XawIm.c
+++ b/src/XawIm.c
@@ -1547,11 +1547,10 @@ void
_XawImCallVendorShellExtResize(
Widget w)
{
- XawVendorShellExtPart *ve;
VendorShellWidget vw;
- if ((vw = SearchVendorShell(w)) && (ve = GetExtPart(vw))) {
- XawVendorShellExtResize(vw);
+ if ((vw = SearchVendorShell(w)) && GetExtPart(vw)) {
+ XawVendorShellExtResize((Widget)vw);
}
}