diff options
author | George Hazan <george.hazan@gmail.com> | 2014-07-09 13:32:06 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-07-09 13:32:06 +0000 |
commit | a35f8740e62fc7953e4aa94601646e1999e639ed (patch) | |
tree | 7700ab1791c6de1aa5c7a5aeba550963f767def3 /protocols/IcqOscarJ/src/icq_packet.cpp | |
parent | 6a7a48d4e44f271406a7a9fd2c196ca7e4b554af (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.cpp | 14 |
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)
|