Commit ae80a2de authored by Pavel Tvrdík's avatar Pavel Tvrdík Committed by Ondrej Zajicek
Browse files

unsigned [int] -> uint

parent e348ef01
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ static struct cmd_node cmd_root;
void
cmd_build_tree(void)
{
  unsigned int i;
  uint i;

  cmd_root.plastson = &cmd_root.son;

+1 −1
Original line number Diff line number Diff line
@@ -100,7 +100,7 @@ void cfg_copy_list(list *dest, list *src, unsigned node_size);

/* Lexer */

extern int (*cf_read_hook)(byte *buf, unsigned int max, int fd);
extern int (*cf_read_hook)(byte *buf, uint max, int fd);

struct symbol {
  struct symbol *next;
+1 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@
 * representation consists of @n ones followed by zeroes.
 */
u32
u32_mkmask(unsigned n)
u32_mkmask(uint n)
{
  return n ? ~((1 << (32 - n)) - 1) : 0;
}
+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@
 *	u32_masklen	Inverse operation to u32_mkmask, -1 if not a bitmask.
 */

u32 u32_mkmask(unsigned n);
u32 u32_mkmask(uint n);
int u32_masklen(u32 x);

u32 u32_log2(u32 v);
+5 −5
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ add32(u32 sum, u32 x)
}

static u16
ipsum_calc_block(u32 *buf, unsigned len, u16 isum)
ipsum_calc_block(u32 *buf, uint len, u16 isum)
{
  /*
   *  A few simple facts about the IP checksum (see RFC 1071 for detailed
@@ -57,7 +57,7 @@ ipsum_calc_block(u32 *buf, unsigned len, u16 isum)
}

static u16
ipsum_calc(void *frag, unsigned len, va_list args)
ipsum_calc(void *frag, uint len, va_list args)
{
  u16 sum = 0;

@@ -67,7 +67,7 @@ ipsum_calc(void *frag, unsigned len, va_list args)
      frag = va_arg(args, void *);
      if (!frag)
	break;
      len = va_arg(args, unsigned);
      len = va_arg(args, uint);
    }
  return sum;
}
@@ -87,7 +87,7 @@ ipsum_calc(void *frag, unsigned len, va_list args)
 * Result: 1 if the checksum is correct, 0 else.
 */
int
ipsum_verify(void *frag, unsigned len, ...)
ipsum_verify(void *frag, uint len, ...)
{
  va_list args;
  u16 sum;
@@ -110,7 +110,7 @@ ipsum_verify(void *frag, unsigned len, ...)
 * up checksum calculation as much as possible.
 */
u16
ipsum_calculate(void *frag, unsigned len, ...)
ipsum_calculate(void *frag, uint len, ...)
{
  va_list args;
  u16 sum;
Loading