aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2019-03-15 14:32:58 +0100
committerPhilipp Maier <pmaier@sysmocom.de>2019-04-08 11:23:39 +0200
commita89581b22dad254ff1e888672c933856d9991c57 (patch)
tree9e0c3595ba22a6fa65b334002ee76315cc308426
parent668d20cc1dcf976d9f886293b5d5795de075f100 (diff)
oc2gbts_mgr_calib: don't use fsync() on *FILE pointer
fsync() takes an integer file descriptor but we have a *FILE pointer here. Lets use fileno() first to convert the integer file descriptor to a FILE pointer. Change-Id: I46ffd8c680ba0b445cbbd133d5ce92b79e3d8d87
-rw-r--r--src/osmo-bts-oc2g/misc/oc2gbts_mgr_calib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo-bts-oc2g/misc/oc2gbts_mgr_calib.c b/src/osmo-bts-oc2g/misc/oc2gbts_mgr_calib.c
index eac8ed1d..33c07829 100644
--- a/src/osmo-bts-oc2g/misc/oc2gbts_mgr_calib.c
+++ b/src/osmo-bts-oc2g/misc/oc2gbts_mgr_calib.c
@@ -134,7 +134,7 @@ static int oc2gbts_par_set_uptime(void *ctx, int val)
fclose(fp);
return -EIO;
}
- fsync(fp);
+ fsync(fileno(fp));
fclose(fp);
return 0;