commit | 5d547a4358edbd18744d1996d6ecb40328f09061 | [log] [tgz] |
---|---|---|
author | Harald Welte <laforge@gnumonks.org> | Wed Apr 27 18:21:16 2016 +0200 |
committer | Harald Welte <laforge@gnumonks.org> | Fri Apr 29 13:10:37 2016 +0200 |
tree | 866489ca9f7ec7be7ee8016e41680d61a819bb29 | |
parent | d8aa412c46638abea05488ebb2e9d70ca7fd628a [diff] |
osmo_oap_decode(): Use common argument ordering In general, if a function generates output data like a msgb (or in this case filling an osmo_oap_message structure), the output argument precedes the source. This is what we use all over libosmo*, and it is modelled after memcpy(), where dst is the first argument, before src. Let's align osmo_oap_decode(). Intestingly, osmo_oap_encode was already correct, so the encode/decode functions used different conventions before.