diff options
author | John Baldwin <jhb@FreeBSD.org> | 2002-11-08 21:13:18 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2002-11-08 21:13:18 +0000 |
commit | 8214d60e20e7fbbdfcdffe0e76cee7ffeddcbf26 (patch) | |
tree | 45b1bbe8e1167234791d9c2b8160f1dd432d0014 /sys/netgraph/ng_ppp.c | |
parent | e068a8783538d807497bbcf107aa9c40e61d638b (diff) | |
download | src-8214d60e20e7fbbdfcdffe0e76cee7ffeddcbf26.tar.gz src-8214d60e20e7fbbdfcdffe0e76cee7ffeddcbf26.zip |
Use intptr_t to fix various sizeof(int) != sizeof(void *) warnings.
Notes
Notes:
svn path=/head/; revision=106665
Diffstat (limited to 'sys/netgraph/ng_ppp.c')
-rw-r--r-- | sys/netgraph/ng_ppp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netgraph/ng_ppp.c b/sys/netgraph/ng_ppp.c index d723b3296aa6..16373e3f4b57 100644 --- a/sys/netgraph/ng_ppp.c +++ b/sys/netgraph/ng_ppp.c @@ -455,7 +455,7 @@ ng_ppp_newhook(node_p node, hook_p hook, const char *name) /* OK */ *hookPtr = hook; - NG_HOOK_SET_PRIVATE(hook, (void *)hookIndex); + NG_HOOK_SET_PRIVATE(hook, (void *)(intptr_t)hookIndex); ng_ppp_update(node, 0); return (0); } @@ -593,7 +593,7 @@ ng_ppp_rcvdata(hook_p hook, item_p item) { const node_p node = NG_HOOK_NODE(hook); const priv_p priv = NG_NODE_PRIVATE(node); - const int index = (int)NG_HOOK_PRIVATE(hook); + const int index = (intptr_t)NG_HOOK_PRIVATE(hook); u_int16_t linkNum = NG_PPP_BUNDLE_LINKNUM; hook_p outHook = NULL; int proto = 0, error; @@ -826,7 +826,7 @@ ng_ppp_disconnect(hook_p hook) { const node_p node = NG_HOOK_NODE(hook); const priv_p priv = NG_NODE_PRIVATE(node); - const int index = (int)NG_HOOK_PRIVATE(hook); + const int index = (intptr_t)NG_HOOK_PRIVATE(hook); /* Zero out hook pointer */ if (index < 0) |