summaryrefslogtreecommitdiffstats
path: root/unix/tkUnixSelect.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2007-05-03 22:15:59 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2007-05-03 22:15:59 (GMT)
commite61b61a3f03fc95c9f9c7271fb705df4e84f31e0 (patch)
treef9f6ecc37d850900d1d406840508d7f3f77e910d /unix/tkUnixSelect.c
parent1d327cff35030c574230508e600a5f587b64b321 (diff)
downloadtk-e61b61a3f03fc95c9f9c7271fb705df4e84f31e0.zip
tk-e61b61a3f03fc95c9f9c7271fb705df4e84f31e0.tar.gz
tk-e61b61a3f03fc95c9f9c7271fb705df4e84f31e0.tar.bz2
Fix more type pun warnings (those not found by my local version of GCC)
Diffstat (limited to 'unix/tkUnixSelect.c')
-rw-r--r--unix/tkUnixSelect.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/unix/tkUnixSelect.c b/unix/tkUnixSelect.c
index 301a201..b85b274 100644
--- a/unix/tkUnixSelect.c
+++ b/unix/tkUnixSelect.c
@@ -8,7 +8,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkUnixSelect.c,v 1.20 2007/04/17 14:29:46 dkf Exp $
+ * RCS: @(#) $Id: tkUnixSelect.c,v 1.21 2007/05/03 22:16:00 dkf Exp $
*/
#include "tkInt.h"
@@ -847,7 +847,7 @@ ConvertSelection(
incr.multAtoms = singleInfo;
incr.numConversions = 1;
} else {
- Atom type;
+ Atom type, **multAtomsPtr = &incr.multAtoms;
int format, result;
unsigned long bytesAfter;
@@ -859,7 +859,7 @@ ConvertSelection(
result = XGetWindowProperty(eventPtr->display, eventPtr->requestor,
eventPtr->property, 0, MAX_PROP_WORDS, False, XA_ATOM,
&type, &format, &incr.numConversions, &bytesAfter,
- (unsigned char **) &incr.multAtoms);
+ (unsigned char **) multAtomsPtr);
if ((result != Success) || (bytesAfter != 0) || (format != 32)
|| (type == None)) {
if (incr.multAtoms != NULL) {