diff options
author | Robert Nagy <robert@cvs.openbsd.org> | 2010-04-28 12:46:19 +0000 |
---|---|---|
committer | Robert Nagy <robert@cvs.openbsd.org> | 2010-04-28 12:46:19 +0000 |
commit | e1444f47e96572dde869de535273df00110efa0b (patch) | |
tree | d9cba0a4926db4937ad66d59eeb2d46bac012129 /sys/net/pfvar.h | |
parent | 5a737c4945be1385b0ccd74235a2e4ae0a6c8a86 (diff) |
Cast 'a' to (void *) in the REASON_SET macro. Makes gcc4 happy.
ok henning@
Diffstat (limited to 'sys/net/pfvar.h')
-rw-r--r-- | sys/net/pfvar.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h index 31abefeaf47..8d352ca03f5 100644 --- a/sys/net/pfvar.h +++ b/sys/net/pfvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pfvar.h,v 1.307 2010/01/20 21:41:17 mcbride Exp $ */ +/* $OpenBSD: pfvar.h,v 1.308 2010/04/28 12:46:18 robert Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -1330,7 +1330,7 @@ struct pf_pdesc { #define REASON_SET(a, x) \ do { \ - if ((a) != NULL) \ + if ((void *)(a) != NULL) \ *(a) = (x); \ if (x < PFRES_MAX) \ pf_status.counters[x]++; \ |