diff options
author | Xin LI <delphij@FreeBSD.org> | 2012-10-04 21:07:56 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2012-10-04 21:07:56 +0000 |
commit | 3ca61f8b14e648b24f10072d662c12fb35fc4b44 (patch) | |
tree | c0321d3af9efd8c73c3684447c146eec380fca7b /optimize.c | |
parent | 5a0615f5c40ce036a7e13cfffe00927f845ad563 (diff) |
Notes
Diffstat (limited to 'optimize.c')
-rw-r--r-- | optimize.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/optimize.c b/optimize.c index 46dffec8a9cc..6bbda956328e 100644 --- a/optimize.c +++ b/optimize.c @@ -152,10 +152,10 @@ static void deadstmt(struct stmt *, struct stmt *[]); static void opt_deadstores(struct block *); static struct block *fold_edge(struct block *, struct edge *); static inline int eq_blk(struct block *, struct block *); -static int slength(struct slist *); +static u_int slength(struct slist *); static int count_blocks(struct block *); static void number_blks_r(struct block *); -static int count_stmts(struct block *); +static u_int count_stmts(struct block *); static int convert_code_r(struct block *); #ifdef BDEBUG static void opt_dump(struct block *); @@ -1904,11 +1904,11 @@ opt_cleanup() /* * Return the number of stmts in 's'. */ -static int +static u_int slength(s) struct slist *s; { - int n = 0; + u_int n = 0; for (; s; s = s->next) if (s->s.code != NOP) @@ -1970,11 +1970,11 @@ number_blks_r(p) * * an extra long jump if the false branch requires it (p->longjf). */ -static int +static u_int count_stmts(p) struct block *p; { - int n; + u_int n; if (p == 0 || isMarked(p)) return 0; @@ -2263,9 +2263,9 @@ filled: struct bpf_insn * icode_to_fcode(root, lenp) struct block *root; - int *lenp; + u_int *lenp; { - int n; + u_int n; struct bpf_insn *fp; /* |