Fixed -Wpointer-arith warning.
Submitted by: Stefan Farfeleder PR: bin/56653
This commit is contained in:
parent
1c21ddbd77
commit
8e75a37bb0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=119932
@ -2732,7 +2732,7 @@ fill_rule(void *buf, int bufsize, int rulenum,
|
|||||||
|
|
||||||
rule->cmd_len = (u_int32_t *)cmd - (u_int32_t *)rule->cmd;
|
rule->cmd_len = (u_int32_t *)cmd - (u_int32_t *)rule->cmd;
|
||||||
|
|
||||||
return ((void *)cmd - buf);
|
return ((char *)cmd - (char *)buf);
|
||||||
}
|
}
|
||||||
#endif /* IPFW2 */
|
#endif /* IPFW2 */
|
||||||
|
|
||||||
|
@ -2732,7 +2732,7 @@ fill_rule(void *buf, int bufsize, int rulenum,
|
|||||||
|
|
||||||
rule->cmd_len = (u_int32_t *)cmd - (u_int32_t *)rule->cmd;
|
rule->cmd_len = (u_int32_t *)cmd - (u_int32_t *)rule->cmd;
|
||||||
|
|
||||||
return ((void *)cmd - buf);
|
return ((char *)cmd - (char *)buf);
|
||||||
}
|
}
|
||||||
#endif /* IPFW2 */
|
#endif /* IPFW2 */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user