98feffca51
- uses MULTI_PACKAGES (-client, -server, -share) - gtk2 support in the client from maintainer Aleksander Piotrowski <aleksander.piotrowski at piestrak.waw.pl> cleaned up by yours truly
22 lines
748 B
Plaintext
22 lines
748 B
Plaintext
$OpenBSD: patch-common_dataio_c,v 1.1 2004/06/02 12:40:42 sturm Exp $
|
|
--- common/dataio.c.orig 2003-12-02 19:56:58.000000000 +0100
|
|
+++ common/dataio.c 2004-05-06 12:27:37.000000000 +0200
|
|
@@ -225,7 +225,7 @@ void dio_put_uint16(struct data_out *dou
|
|
void dio_put_uint32(struct data_out *dout, int value)
|
|
{
|
|
if (enough_space(dout, 4)) {
|
|
- unsigned long x = htonl(value);
|
|
+ unsigned int x = htonl(value);
|
|
|
|
memcpy(ADD_TO_POINTER(dout->dest, dout->current), &x, 4);
|
|
dout->current += 4;
|
|
@@ -461,7 +461,7 @@ void dio_get_uint32(struct data_in *din,
|
|
{
|
|
if (enough_data(din, 4)) {
|
|
if (dest) {
|
|
- unsigned long x;
|
|
+ unsigned int x;
|
|
|
|
memcpy(&x, ADD_TO_POINTER(din->src, din->current), 4);
|
|
*dest = ntohl(x);
|