Fixed -Wpointer-arith warning.
Submitted by: Stefan Farfeleder PR: bin/56653
This commit is contained in:
parent
dc59bcaeee
commit
421fdf157c
@ -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 */
|
||||
|
||||
|
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user