summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/physical.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ppp/physical.h')
-rw-r--r--usr.sbin/ppp/physical.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ppp/physical.h b/usr.sbin/ppp/physical.h
index f16e1a1..ab0cdba 100644
--- a/usr.sbin/ppp/physical.h
+++ b/usr.sbin/ppp/physical.h
@@ -116,7 +116,7 @@ struct physical {
};
#define field2phys(fp, name) \
- ((struct physical *)((char *)fp - (int)(&((struct physical *)0)->name)))
+ ((struct physical *)((char *)fp - (uintptr_t)(&((struct physical *)0)->name)))
#define link2physical(l) \
((l)->type == PHYSICAL_LINK ? field2phys(l, link) : NULL)
OpenPOWER on IntegriCloud