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/imlib/packet.cpp

    r2 r17  
    55
    66
    7 int packet::advance(long offset)
     7int packet::advance(int32_t offset)
    88{
    99  ro+=offset;
     
    1111}
    1212
    13 void packet::write_long(ulong x)
     13void packet::write_uint32(uint32_t x)
    1414{
    1515  x=lltl(x);
    16   write((uchar *)&x,4);
     16  write((uint8_t *)&x,4);
    1717}
    1818
    19 void packet::write_short(ushort x)
     19void packet::write_uint16(uint16_t x)
    2020{
    2121  x=lstl(x);
    22   write((uchar *)&x,2);
     22  write((uint8_t *)&x,2);
    2323}
    2424
    25 void packet::write_byte(uchar x)
     25void packet::write_uint8(uint8_t x)
    2626{
    2727  write(&x,1);
     
    4141
    4242  buf_size=1000;
    43   buf=(uchar *)jmalloc(buf_size,"packet buffer");
     43  buf=(uint8_t *)jmalloc(buf_size,"packet buffer");
    4444  reset();
    4545
     
    7272  {
    7373    buf_size=max;
    74     buf=(uchar *)jrealloc(buf,max,"packet buffer");
     74    buf=(uint8_t *)jrealloc(buf,max,"packet buffer");
    7575  }
    7676}
    7777
    78 int packet::read(uchar *buffer, int size)
     78int packet::read(uint8_t *buffer, int size)
    7979{
    8080  if (size>rend-ro)
     
    9090
    9191
    92 int packet::write(uchar *buffer, int size)
     92int packet::write(uint8_t *buffer, int size)
    9393{
    9494  if (size>buf_size-wo)
Note: See TracChangeset for help on using the changeset viewer.