Commit Graph

4 Commits

Author SHA1 Message Date
Harald Welte ffff2f6572 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
2019-07-21 11:33:24 +02:00
Pau Espin cbdde82aca bind_receiver_resp_test.c: Fix compilation warning
/home/pespin/dev/sysmocom/bin/../git/libsmpp34/test_pdu/bind_receiver_resp_test.c: In function ‘main’:
/home/pespin/dev/sysmocom/bin/../git/libsmpp34/test_pdu/bind_receiver_resp_test.c:55:58: warning: ‘snprintf’ output
 truncated before the last format character [-Wformat-truncation=]
     snprintf((char*)b.system_id, sizeof(b.system_id), "%s", "1234567890123456");
                                                          ^
/home/pespin/dev/sysmocom/bin/../git/libsmpp34/test_pdu/bind_receiver_resp_test.c:55:5: note: ‘snprintf’ output 17
bytes into a destination of size 16
     snprintf((char*)b.system_id, sizeof(b.system_id), "%s", "1234567890123456");

Change-Id: I4ec682a5e2ee4d02008a9c86a0a5507792667d0e
2017-09-15 20:24:24 +02:00
Holger Hans Peter Freyther eca1440439 misc: Always include stdint.h as it is almost 2013 now
C99 is there for over a decode, always depend on the stdint header
being present, specially as the code is using uint32_t all over the
place.
2012-11-09 13:39:51 +01:00
Harald Welte 4b233b4f3b initial import of libsmpp34-1.10 2012-11-07 08:32:31 +01:00