diff options
author | Can Erkin Acar <canacar@cvs.openbsd.org> | 2008-05-11 02:28:17 +0000 |
---|---|---|
committer | Can Erkin Acar <canacar@cvs.openbsd.org> | 2008-05-11 02:28:17 +0000 |
commit | e4d6cfe2f978b8a425a7f971c9b34c470cc8da00 (patch) | |
tree | ccfe8cf3d592fa2ee3d4a8110fc184384450ead7 /sys/net/if_spppsubr.c | |
parent | a8ce32f549774157c2f3abbfd84cb442ee223760 (diff) |
When passing opt[] array as an argument, use opt instead of &opt. While
they point to the same address, this is more readable. ok claudio@
Diffstat (limited to 'sys/net/if_spppsubr.c')
-rw-r--r-- | sys/net/if_spppsubr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c index 8ee4b39b734..a5d6870081e 100644 --- a/sys/net/if_spppsubr.c +++ b/sys/net/if_spppsubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_spppsubr.c,v 1.65 2007/12/04 19:49:52 claudio Exp $ */ +/* $OpenBSD: if_spppsubr.c,v 1.66 2008/05/11 02:28:16 canacar Exp $ */ /* * Synchronous PPP/Cisco link level subroutines. * Keepalive protocol implemented in both Cisco and PPP modes. @@ -2622,7 +2622,7 @@ sppp_lcp_scr(struct sppp *sp) } sp->confid[IDX_LCP] = ++sp->pp_seq; - sppp_cp_send (sp, PPP_LCP, CONF_REQ, sp->confid[IDX_LCP], i, &opt); + sppp_cp_send (sp, PPP_LCP, CONF_REQ, sp->confid[IDX_LCP], i, opt); } /* @@ -3103,7 +3103,7 @@ sppp_ipcp_scr(struct sppp *sp) } sp->confid[IDX_IPCP] = ++sp->pp_seq; - sppp_cp_send(sp, PPP_IPCP, CONF_REQ, sp->confid[IDX_IPCP], i, &opt); + sppp_cp_send(sp, PPP_IPCP, CONF_REQ, sp->confid[IDX_IPCP], i, opt); } /* @@ -3520,7 +3520,7 @@ p opt[i++] = 0; /* TBD */ #endif sp->confid[IDX_IPV6CP] = ++sp->pp_seq; - sppp_cp_send(sp, PPP_IPV6CP, CONF_REQ, sp->confid[IDX_IPV6CP], i, &opt); + sppp_cp_send(sp, PPP_IPV6CP, CONF_REQ, sp->confid[IDX_IPV6CP], i, opt); } #else /*INET6*/ HIDE void |