diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-08-17 13:27:20 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-08-17 14:04:01 +0000 |
commit | 36abeadc7ba6ff15a3e01230195309f87f788f33 (patch) | |
tree | 9bfc20e14f578ea100825cc27bd61f86c0440c7d /src/gprs/gb_proxy.c | |
parent | 107fb59e84b12bbf6bdfdd4fc241dbcda7332706 (diff) |
Use osmo_clock_gettime from libosmocore
Change-Id: Ic638849c6687c376c4c0c36cc286d499a073d6ca
Diffstat (limited to 'src/gprs/gb_proxy.c')
-rw-r--r-- | src/gprs/gb_proxy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gprs/gb_proxy.c b/src/gprs/gb_proxy.c index dc3c81032..f834ed3e6 100644 --- a/src/gprs/gb_proxy.c +++ b/src/gprs/gb_proxy.c @@ -591,7 +591,7 @@ static int gbprox_process_bssgp_ul(struct gbproxy_config *cfg, return 0; - clock_gettime(CLOCK_MONOTONIC, &ts); + osmo_clock_gettime(CLOCK_MONOTONIC, &ts); now = ts.tv_sec; gbprox_update_current_raid(parse_ctx.bssgp_raid_enc, peer, @@ -707,7 +707,7 @@ static void gbprox_process_bssgp_dl(struct gbproxy_config *cfg, if (!peer) return; - clock_gettime(CLOCK_MONOTONIC, &ts); + osmo_clock_gettime(CLOCK_MONOTONIC, &ts); now = ts.tv_sec; if (parse_ctx.g48_hdr) { @@ -1432,7 +1432,7 @@ int gbproxy_init_config(struct gbproxy_config *cfg) LOGP(DGPRS, LOGL_ERROR, "Cannot allocate global counter group!\n"); return -1; } - clock_gettime(CLOCK_REALTIME, &tp); + osmo_clock_gettime(CLOCK_REALTIME, &tp); return 0; } |