aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-litecell15/misc/lc15bts_par.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/osmo-bts-litecell15/misc/lc15bts_par.c')
-rw-r--r--src/osmo-bts-litecell15/misc/lc15bts_par.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/osmo-bts-litecell15/misc/lc15bts_par.c b/src/osmo-bts-litecell15/misc/lc15bts_par.c
index 75314a44..af9d030f 100644
--- a/src/osmo-bts-litecell15/misc/lc15bts_par.c
+++ b/src/osmo-bts-litecell15/misc/lc15bts_par.c
@@ -144,7 +144,7 @@ int lc15bts_par_set_int(void *ctx, enum lc15bts_par par, int val)
return -EIO;
}
- fsync(fp);
+ fsync(fileno(fp));
fclose(fp);
return 0;
}
@@ -176,7 +176,7 @@ int lc15bts_par_set_buf(void *ctx, enum lc15bts_par par, const uint8_t *buf, uns
rc = fwrite(buf, 1, size, fp);
- fsync(fp);
+ fsync(fileno(fp));
fclose(fp);
return rc;
@@ -225,7 +225,7 @@ int lc15bts_par_set_gps_fix(time_t val)
fclose(fp);
return -EIO;
}
- fsync(fp);
+ fsync(fileno(fp));
fclose(fp);
return 0;