--- sbbs/src/smblib/smballoc.c 2018/04/24 16:41:24 1.1 +++ sbbs/src/smblib/smballoc.c 2018/04/24 16:45:11 1.1.1.2 @@ -2,7 +2,7 @@ /* Synchronet message base (SMB) alloc/free routines */ -/* $Id: smballoc.c,v 1.1 2018/04/24 16:41:24 root Exp $ */ +/* $Id: smballoc.c,v 1.1.1.2 2018/04/24 16:45:11 root Exp $ */ /**************************************************************************** * @format.tab-size 4 (Plain Text/Source Code File Header) * @@ -47,9 +47,9 @@ /* smb_close_da() should be called after */ /* Returns negative on error */ /****************************************************************************/ -long SMBCALL smb_allocdat(smb_t* smb, ulong length, ushort refs) +long SMBCALL smb_allocdat(smb_t* smb, ulong length, uint16_t refs) { - ushort i; + uint16_t i; ulong j,l,blocks,offset=0L; if(smb->sda_fp==NULL) { @@ -95,7 +95,7 @@ long SMBCALL smb_allocdat(smb_t* smb, ul /* Allocates space for data, but doesn't search for unused blocks */ /* Returns negative on error */ /****************************************************************************/ -long SMBCALL smb_fallocdat(smb_t* smb, ulong length, ushort refs) +long SMBCALL smb_fallocdat(smb_t* smb, ulong length, uint16_t refs) { ulong l,blocks,offset; @@ -132,11 +132,11 @@ long SMBCALL smb_fallocdat(smb_t* smb, u /* De-allocates space for data */ /* Returns non-zero on error */ /****************************************************************************/ -int SMBCALL smb_freemsgdat(smb_t* smb, ulong offset, ulong length, ushort refs) +int SMBCALL smb_freemsgdat(smb_t* smb, ulong offset, ulong length, uint16_t refs) { BOOL da_opened=FALSE; int retval=SMB_SUCCESS; - ushort i; + uint16_t i; ulong l,blocks; ulong sda_offset; @@ -200,9 +200,9 @@ int SMBCALL smb_freemsgdat(smb_t* smb, u /* Adds to data allocation records for blocks starting at 'offset' */ /* Returns non-zero on error */ /****************************************************************************/ -int SMBCALL smb_incdat(smb_t* smb, ulong offset, ulong length, ushort refs) +int SMBCALL smb_incdat(smb_t* smb, ulong offset, ulong length, uint16_t refs) { - ushort i; + uint16_t i; ulong l,blocks; if(smb->sda_fp==NULL) { @@ -242,7 +242,7 @@ int SMBCALL smb_incdat(smb_t* smb, ulong /* header references specified (usually 1) */ /* The opposite function of smb_freemsg() */ /****************************************************************************/ -int SMBCALL smb_incmsg_dfields(smb_t* smb, smbmsg_t* msg, ushort refs) +int SMBCALL smb_incmsg_dfields(smb_t* smb, smbmsg_t* msg, uint16_t refs) { int i=SMB_SUCCESS; BOOL da_opened=FALSE; @@ -297,7 +297,7 @@ int SMBCALL smb_freemsghdr(smb_t* smb, u /****************************************************************************/ /****************************************************************************/ -int SMBCALL smb_freemsg_dfields(smb_t* smb, smbmsg_t* msg, ushort refs) +int SMBCALL smb_freemsg_dfields(smb_t* smb, smbmsg_t* msg, uint16_t refs) { int i; ushort x;