diff lib/sshv2.c @ 519:c3edcd3e9db9

2004-7-27 Brian Masney <masneyb@gftp.org> * lib/sshv2.c - fixed SSHV2 transfers so that they work again (they were busted in the last CVS commit due to the wrong file offset being sent over) * src/gtk/misc-gtk.c - fix for the log window so that the contents are properly shown. (this was busted in the last CVS commit)
author masneyb
date Wed, 28 Jul 2004 01:58:28 +0000
parents c6a6e908dbaf
children e67a52327b24
line wrap: on
line diff
--- a/lib/sshv2.c	Wed Jul 28 01:37:15 2004 +0000
+++ b/lib/sshv2.c	Wed Jul 28 01:58:28 2004 +0000
@@ -1843,12 +1843,13 @@
 #ifdef G_HAVE_GINT64
 
 static gint64
-hton64 (gint64 val)
+sshv2_hton64 (gint64 val)
 {
-  if (G_BYTE_ORDER != G_BIG_ENDIAN)
-    return (GINT64_TO_BE (val));
-  else
-    return (val);
+#if G_BYTE_ORDER != G_BIG_ENDIAN
+  return (GINT64_TO_BE (val));
+#else
+  return (val);
+#endif
 }
 
 #endif
@@ -1861,9 +1862,9 @@
 #ifdef G_HAVE_GINT64
   gint64 offset;
 
-  offset = hton64 (params->offset);
-  lownum = offset & 0xffffffff;
-  hinum = offset >> 32;
+  offset = sshv2_hton64 (params->offset);
+  lownum = offset >> 32;
+  hinum = (guint32) offset;
 #else
   hinum = 0;
   lownum = htonl (params->offset);