Eric Wild
94cd4acef8
sim: allow opening reader# > 0
...
Change-Id: I4b1abc8d8aae4bd9a32f927269d7ebfef902d7c5
2019-12-09 12:54:43 +01:00
Neels Hofmeyr
95fdbc14ff
cosmetic: osmo-sim-test.c: use memcpy instead of strncpy
...
gcc 8.1.0 complains that the terminating \0 is not copied by strncpy, while
this code intends to do exactly that. Use memcpy instead.
Change-Id: I8d66fa22502c04d11ae153b9856d7e54f3492dd6
2018-07-27 18:15:44 +00:00
Pau Espin
ffa41ca665
osmo-sim-test.c: Remove unused functions
...
Change-Id: I3060cfee8ece86c4c89a65f93c9f5424df0c410b
2017-06-22 18:14:18 +00:00
Vadim Yanitskiy
1cd9991cf6
utils/osmo-sim-test.c: strip unused variables
...
Change-Id: Id577d9df5a814ad5aa00e1d04c4790d75d17ad7e
2017-05-17 10:15:09 +00:00
Harald Welte
f12d40f4df
fix various compiler warnings (on FreeBSD-11.0)
...
FreeBSD 11.0 uses clang version 3.8.0 which spits various warnings
during libosmocore compilation. Let's clean this up a bit.
Change-Id: Ic14572e6970bd0b8916604fabf807f1608fa07e5
2017-02-08 16:49:14 +01:00
Harald Welte
9533631e53
osmo-sim-test.c: Fix rmsg check
...
we wanted to check for !rmsg, but used to check for !msg, missing error
returns from read_record_nr().
Change-Id: I79b6a94b1aa947c8329317b0626865c3cd4159c1
Fixes: Coverity CID 57672
2016-11-26 14:03:04 +01:00
Harald Welte
5ffb50371e
rename osim_file_find_* to osim_file_desc_find_*
...
they return an osim_file_desc, and not an osim_file, so fix the naming
2016-03-11 22:05:25 +07:00
Alexander Huemer
aab4a2497c
osmo-sim-test: add missing include
2015-11-07 12:30:38 +01:00
Harald Welte
d6ec984c51
osmo-sim-test: Fix read_binary() return check
...
if we expect rmsg to be set, we should check for it...
2014-10-27 20:46:40 +01:00
Harald Welte
55790aa09a
sim: Prepare infrastructure for protocols != T=0 and other drivers
2014-10-26 19:50:51 +01:00
Harald Welte
3fc3f068b3
sim: Make osmo-sim-test compile again
2014-10-26 19:09:23 +01:00
Harald Welte
7674960ffa
sim: add decoding of status words
2014-10-26 19:09:23 +01:00
Harald Welte
a5c9255baa
sim: strip the SW from the returned data, as SW is passed in msgb->cb
2014-10-26 19:09:22 +01:00
Harald Welte
ad41863b8d
sim: add copyright notices and merge file_codec.c into core.c
2014-10-26 19:09:22 +01:00
Harald Welte
a0ba4d9438
sim: osmo-sim-test: Also dump binary files
2014-10-26 19:09:22 +01:00
Harald Welte
d54c2ee8c5
initial checkin of 'libosmosim'
2014-10-26 19:09:22 +01:00