diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-07-05 13:38:15 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-07-05 13:38:15 +0200 |
commit | 017300623b0ffad1d98cc47b0e7000c648511b1c (patch) | |
tree | 29f6b2b5f1694e372ab19e61a6f41c99724eea03 /src | |
parent | f78927a9a89d516a3ef71398272b463f64671078 (diff) |
Fix compilation of paging.c
Sometimes I really feel stupid...
Diffstat (limited to 'src')
-rw-r--r-- | src/common/paging.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/paging.c b/src/common/paging.c index adc5ca11..4d65a046 100644 --- a/src/common/paging.c +++ b/src/common/paging.c @@ -196,7 +196,7 @@ static int fill_paging_type_1(uint8_t *out_buf, const uint8_t *identity1_lv, if (identity2_lv) cur = lv_put(cur, identity2_lv[0], identity2_lv+1); - pt1->l2_plen = L2_PLEN(cur - buf); + pt1->l2_plen = L2_PLEN(cur - out_buf); return cur - out_buf; } @@ -222,7 +222,7 @@ static int fill_paging_type_2(uint8_t *out_buf, const uint8_t *tmsi1_lv, if (identity3_lv) cur = lv_put(pt2->data, identity3_lv[0], identity3_lv+1); - pt1->l2_plen = L2_PLEN(cur - buf); + pt2->l2_plen = L2_PLEN(cur - out_buf); return cur - out_buf; } |