Commit fc1c056a authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

signed/unsigned flexelinting

parent 36920626
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
struct acl_e { struct acl_e {
VTAILQ_ENTRY(acl_e) list; VTAILQ_ENTRY(acl_e) list;
unsigned char data[ACL_MAXADDR]; unsigned char data[ACL_MAXADDR];
unsigned mask; int mask;
unsigned not; unsigned not;
unsigned para; unsigned para;
char *addr; char *addr;
...@@ -66,7 +66,7 @@ static int ...@@ -66,7 +66,7 @@ static int
vcl_acl_cmp(struct acl_e *ae1, struct acl_e *ae2) vcl_acl_cmp(struct acl_e *ae1, struct acl_e *ae2)
{ {
unsigned char *p1, *p2; unsigned char *p1, *p2;
unsigned m; int m;
p1 = ae1->data; p1 = ae1->data;
p2 = ae2->data; p2 = ae2->data;
...@@ -123,7 +123,7 @@ vcc_acl_add_entry(struct vcc *tl, const struct acl_e *ae, int l, ...@@ -123,7 +123,7 @@ vcc_acl_add_entry(struct vcc *tl, const struct acl_e *ae, int l,
aen->data[0] = fam & 0xff; aen->data[0] = fam & 0xff;
aen->mask += 8; aen->mask += 8;
assert(l + 1L <= sizeof aen->data); assert(l + 1UL <= sizeof aen->data);
memcpy(aen->data + 1L, u, l); memcpy(aen->data + 1L, u, l);
VTAILQ_FOREACH(ae2, &tl->acl, list) { VTAILQ_FOREACH(ae2, &tl->acl, list) {
......
...@@ -140,8 +140,8 @@ struct symbol { ...@@ -140,8 +140,8 @@ struct symbol {
char *name; char *name;
unsigned nlen; unsigned nlen;
unsigned lorev; int lorev;
unsigned hirev; int hirev;
struct symbol *parent; struct symbol *parent;
const char *vmod; const char *vmod;
...@@ -348,8 +348,7 @@ void vcc_stevedore(struct vcc *vcc, const char *stv_name); ...@@ -348,8 +348,7 @@ void vcc_stevedore(struct vcc *vcc, const char *stv_name);
/* vcc_symb.c */ /* vcc_symb.c */
void VCC_PrintCName(struct vsb *vsb, const char *b, const char *e); void VCC_PrintCName(struct vsb *vsb, const char *b, const char *e);
struct symbol *VCC_MkSym(struct vcc *tl, const char *b, vcc_kind_t, struct symbol *VCC_MkSym(struct vcc *tl, const char *b, vcc_kind_t, int, int);
unsigned, unsigned);
extern const char XREF_NONE[]; extern const char XREF_NONE[];
extern const char XREF_DEF[]; extern const char XREF_DEF[];
extern const char XREF_REF[]; extern const char XREF_REF[];
......
...@@ -101,7 +101,7 @@ vcc_new_symbol(struct vcc *tl, const char *b, const char *e) ...@@ -101,7 +101,7 @@ vcc_new_symbol(struct vcc *tl, const char *b, const char *e)
static struct symbol * static struct symbol *
VCC_Symbol(struct vcc *tl, struct symbol *parent, VCC_Symbol(struct vcc *tl, struct symbol *parent,
const char *b, const char *e, vcc_kind_t kind, const char *b, const char *e, vcc_kind_t kind,
int create, unsigned vlo, unsigned vhi) int create, int vlo, int vhi)
{ {
const char *q; const char *q;
struct symbol *sym, *sym2 = NULL; struct symbol *sym, *sym2 = NULL;
...@@ -275,7 +275,7 @@ VCC_SymbolGet(struct vcc *tl, vcc_kind_t kind, const char *e, const char *x) ...@@ -275,7 +275,7 @@ VCC_SymbolGet(struct vcc *tl, vcc_kind_t kind, const char *e, const char *x)
struct symbol * struct symbol *
VCC_MkSym(struct vcc *tl, const char *b, vcc_kind_t kind, VCC_MkSym(struct vcc *tl, const char *b, vcc_kind_t kind,
unsigned vlo, unsigned vhi) int vlo, int vhi)
{ {
struct symbol *sym; struct symbol *sym;
......
...@@ -105,7 +105,7 @@ vcc_suckaddr(struct vcc *tl, const char *host, const struct suckaddr *vsa, ...@@ -105,7 +105,7 @@ vcc_suckaddr(struct vcc *tl, const char *host, const struct suckaddr *vsa,
const int sz = sizeof(unsigned long long); const int sz = sizeof(unsigned long long);
const unsigned n = (vsa_suckaddr_len + sz - 1) / sz; const unsigned n = (vsa_suckaddr_len + sz - 1) / sz;
unsigned long long b[n]; unsigned long long b[n];
int len; unsigned len;
char *q; char *q;
VTCP_name(vsa, a, sizeof a, p, sizeof p); VTCP_name(vsa, a, sizeof a, p, sizeof p);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment