aboutsummaryrefslogtreecommitdiffstats
path: root/src/gprs/gtphub.c
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-12-20 17:01:05 +0100
committerHarald Welte <laforge@gnumonks.org>2017-12-26 21:27:55 +0000
commite9bcbe1545e115dd1f099c3d56b315b86d09083e (patch)
tree8f61ffb9d39d57eae1894c73dea691f775583307 /src/gprs/gtphub.c
parent68d08ad03fbcb789140cb119c9abf6072159587f (diff)
cosmetic: use macro for gtphub plane iteration
Diffstat (limited to 'src/gprs/gtphub.c')
-rw-r--r--src/gprs/gtphub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gprs/gtphub.c b/src/gprs/gtphub.c
index 5e962f2..76eebb1 100644
--- a/src/gprs/gtphub.c
+++ b/src/gprs/gtphub.c
@@ -1517,7 +1517,7 @@ static int gtphub_handle_create_pdp_ctx(struct gtphub *hub,
int ie_mandatory = (p->type == GTP_CREATE_PDP_REQ);
unsigned int side_idx = p->side_idx;
- for (plane_idx = 0; plane_idx < 2; plane_idx++) {
+ for_each_plane(plane_idx) {
int rc;
struct gsn_addr use_addr;
uint16_t use_port;