aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2019-07-21 11:32:42 +0200
committerHarald Welte <laforge@gnumonks.org>2019-07-21 11:33:24 +0200
commitffff2f6572d74f9764e925528a26731b31f97302 (patch)
tree5977d5516bf64ebf16055457b0c8cecad0542c98
parent1a6bf442ea213971c27712d0e2e76337a1ecfdeb (diff)
bind_receiver_test: Fix "unused value" of writing addr_ton twice
The constant 0x34 clearly hints that this should be written to interface_version... Closes: CID#135235 Change-Id: I89e16746da5c9f77b721294149a1bce5be5a1eae
-rw-r--r--test_pdu/bind_receiver_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test_pdu/bind_receiver_test.c b/test_pdu/bind_receiver_test.c
index fa94c6f..67eab09 100644
--- a/test_pdu/bind_receiver_test.c
+++ b/test_pdu/bind_receiver_test.c
@@ -53,7 +53,7 @@ main( int argc, char *argv[] )
snprintf((char*)b.system_id, sizeof(b.system_id), "%s", "system_id");
snprintf((char*)b.password, sizeof(b.password), "%s", "pass");
snprintf((char*)b.system_type, sizeof(b.system_type), "%s", "syste");
- b.addr_ton = 0x34;
+ b.interface_version = 0x34;
b.addr_ton = 2;
b.addr_npi = 1;
snprintf((char*)b.address_range, sizeof(b.address_range), "%s", "address_range");