Commit 72d265a7 authored by Matteo Quintiliani's avatar Matteo Quintiliani

Fixed bug for big endian architecture


git-svn-id: file:///home/quintiliani/svncopy/nmxptool/trunk@595 3cd66e75-5955-46cb-a940-c26e5fc5497d
parent 2f611a1c
......@@ -7,7 +7,7 @@
* Istituto Nazionale di Geofisica e Vulcanologia - Italy
* quintiliani@ingv.it
*
* $Id: nmxp.c,v 1.56 2007-12-28 10:37:28 mtheo Exp $
* $Id: nmxp.c,v 1.57 2007-12-28 10:55:45 mtheo Exp $
*
*/
......@@ -160,7 +160,9 @@ int nmxp_sendConnectRequest(int isock, char *naqs_username, char *naqs_password,
connectRequest.version = protocol_version;
connectRequest.connection_time = connection_time;
nmxp_data_swap_4b ((int32_t *)&connection_time);
if(!nmxp_data_bigendianhost()) {
nmxp_data_swap_4b ((int32_t *)&connection_time);
}
if(naqs_username_length == 0 && naqs_password_length == 0 ) {
/* sprintf(crc32buf, "%d%d", protocol_version, connection_time); */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment