diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2005-03-02 10:47:26 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2005-03-02 10:47:26 +0000 |
commit | 2cdfc8fbf421c04894a70597eadabdb928c0f75b (patch) | |
tree | e5aa05cf3f19e590a0e5acfd7558425f0408385f /gst/librfb/rfbdecoder.c | |
parent | 65c700b9dd2dc86ebe9a02669ea349d7d8ad3aad (diff) | |
download | gst-plugins-bad-2cdfc8fbf421c04894a70597eadabdb928c0f75b.tar.gz gst-plugins-bad-2cdfc8fbf421c04894a70597eadabdb928c0f75b.tar.bz2 gst-plugins-bad-2cdfc8fbf421c04894a70597eadabdb928c0f75b.zip |
Use GINT_TO_POINTER and GPOINTER_TO_INT macros instead of direct casts; fixes build on AMD64. (fixes #168885)
Original commit message from CVS:
Use GINT_TO_POINTER and GPOINTER_TO_INT macros instead of direct casts; fixes build on AMD64. (fixes #168885)
Diffstat (limited to 'gst/librfb/rfbdecoder.c')
-rw-r--r-- | gst/librfb/rfbdecoder.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gst/librfb/rfbdecoder.c b/gst/librfb/rfbdecoder.c index e8de9b06..0b35f494 100644 --- a/gst/librfb/rfbdecoder.c +++ b/gst/librfb/rfbdecoder.c @@ -21,7 +21,7 @@ static RfbBuffer * rfb_socket_get_buffer (int length, gpointer user_data) { RfbBuffer *buffer; - int fd = (int) user_data; + int fd = GPOINTER_TO_INT (user_data); int ret; buffer = rfb_buffer_new (); @@ -45,7 +45,7 @@ rfb_socket_get_buffer (int length, gpointer user_data) static int rfb_socket_send_buffer (guint8 * buffer, int length, gpointer user_data) { - int fd = (int) user_data; + int fd = GPOINTER_TO_INT (user_data); int ret; g_print ("calling write(%d, %p, %d)\n", fd, buffer, length); @@ -79,10 +79,10 @@ rfb_decoder_use_file_descriptor (RfbDecoder * decoder, int fd) g_return_if_fail (fd >= 0); decoder->bytestream->get_buffer = rfb_socket_get_buffer; - decoder->bytestream->user_data = (void *) fd; + decoder->bytestream->user_data = GINT_TO_POINTER (fd); decoder->send_data = rfb_socket_send_buffer; - decoder->buffer_handler_data = (void *) fd; + decoder->buffer_handler_data = GINT_TO_POINTER (fd); } void |