Ignore:
Timestamp:
Nov 10, 2005, 9:41:13 PM (17 years ago)
Author:
Sam Hocevar
Message:
  • absolute shitloads of 64 bit fixes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/crc.cpp

    r2 r17  
    11#include "crc.hpp"
    22
    3 unsigned short calc_crc(unsigned char *buf, long len)
     3uint16_t calc_crc(uint8_t *buf, int len)
    44{
    5   unsigned char c1=0,c2=0;
     5  uint8_t c1=0,c2=0;
    66  while (len)
    77  {
     
    1616
    1717 
    18 ulong crc_file(bFILE *fp)
     18uint32_t crc_file(bFILE *fp)
    1919{
    20   uchar crc1=0,crc2=0,crc3=0,crc4=0;
     20  uint8_t crc1=0,crc2=0,crc3=0,crc4=0;
    2121
    2222  int size=0x1000;
    23   uchar *buffer=(uchar *)jmalloc(size,"crc_buffer"),*c;
     23  uint8_t *buffer=(uint8_t *)jmalloc(size,"crc_buffer"),*c;
    2424  long l=fp->file_size();
    2525  long cur_pos=fp->tell();
Note: See TracChangeset for help on using the changeset viewer.