summaryrefslogtreecommitdiff
path: root/protocols/IcqOscarJ/src/icq_packet.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-07-09 13:32:06 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-07-09 13:32:06 +0000
commita35f8740e62fc7953e4aa94601646e1999e639ed (patch)
tree7700ab1791c6de1aa5c7a5aeba550963f767def3 /protocols/IcqOscarJ/src/icq_packet.cpp
parent6a7a48d4e44f271406a7a9fd2c196ca7e4b554af (diff)
- advanced diagnostics;
- code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@9747 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/IcqOscarJ/src/icq_packet.cpp')
-rw-r--r--protocols/IcqOscarJ/src/icq_packet.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/protocols/IcqOscarJ/src/icq_packet.cpp b/protocols/IcqOscarJ/src/icq_packet.cpp
index c74687cdc3..72391812b9 100644
--- a/protocols/IcqOscarJ/src/icq_packet.cpp
+++ b/protocols/IcqOscarJ/src/icq_packet.cpp
@@ -20,23 +20,17 @@
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-//
-// -----------------------------------------------------------------------------
-// DESCRIPTION:
-//
-// Describe me here please...
-//
// -----------------------------------------------------------------------------
-#include "icqoscar.h"
+#include "icqoscar.h"
WORD generate_flap_sequence()
{
- DWORD n = rand(), s = 0;
+ DWORD n = rand(), s = 0;
- for (DWORD i = n; i >>= 3; s += i);
+ for (DWORD i = n; i >>= 3; s += i);
- return (((0 - s) ^ (BYTE)n) & 7 ^ n) + 2;
+ return (((0 - s) ^ (BYTE)n) & 7 ^ n) + 2;
}
void __fastcall init_generic_packet(icq_packet *pPacket, WORD wHeaderLen)