Fix two instances of improper NULL/0 use idetified by the changes lately.

Submitted by:	Patrick Marie
Approved by:	bms(mentor)
This commit is contained in:
mlaier 2004-03-08 15:19:55 +00:00
parent 791e1cc501
commit b62869e4ee
2 changed files with 2 additions and 2 deletions

View File

@ -2737,7 +2737,7 @@ natrule : nataction interface af proto fromto tag redirpool pooltype
memcpy(&r.rpool.key, $8.key,
sizeof(struct pf_poolhashkey));
if ($9 != NULL) {
if ($9 != 0) {
if (r.action != PF_NAT) {
yyerror("the 'static-port' option is "
"only valid with nat rules");

View File

@ -165,7 +165,7 @@ void
print_altq(const struct pf_altq *a, unsigned level, struct node_queue_bw *bw,
struct node_queue_opt *qopts)
{
if (a->qname[0] != NULL) {
if (a->qname[0] != '\0') {
print_queue(a, level, bw, 0, qopts);
return;
}