Fixed -Wpointer-arith warning.

Submitted by:	Stefan Farfeleder
PR:		bin/56653
This commit is contained in:
Ruslan Ermilov 2003-09-09 23:50:57 +00:00
parent 1c21ddbd77
commit 8e75a37bb0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=119932
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 */