Fixed -Wpointer-arith warning.

Submitted by:	Stefan Farfeleder
PR:		bin/56653
This commit is contained in:
ru 2003-09-09 23:50:57 +00:00
parent dc59bcaeee
commit 421fdf157c
2 changed files with 2 additions and 2 deletions

View File

@ -2732,7 +2732,7 @@ fill_rule(void *buf, int bufsize, int rulenum,
rule->cmd_len = (u_int32_t *)cmd - (u_int32_t *)rule->cmd;
return ((void *)cmd - buf);
return ((char *)cmd - (char *)buf);
}
#endif /* IPFW2 */

View File

@ -2732,7 +2732,7 @@ fill_rule(void *buf, int bufsize, int rulenum,
rule->cmd_len = (u_int32_t *)cmd - (u_int32_t *)rule->cmd;
return ((void *)cmd - buf);
return ((char *)cmd - (char *)buf);
}
#endif /* IPFW2 */