Change in osmo-bts[master]: lc15: fsync requires fd instead of file stream

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Mon Jun 11 11:06:48 UTC 2018


Pau Espin Pedrol has uploaded this change for review. ( https://gerrit.osmocom.org/9535


Change subject: lc15: fsync requires fd instead of file stream
......................................................................

lc15: fsync requires fd instead of file stream

Change-Id: I7efb7280363b3a021b30c3b4eacb3aab70e9c8da
---
M src/osmo-bts-litecell15/misc/lc15bts_par.c
1 file changed, 3 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/35/9535/1

diff --git a/src/osmo-bts-litecell15/misc/lc15bts_par.c b/src/osmo-bts-litecell15/misc/lc15bts_par.c
index 75314a4..af9d030 100644
--- a/src/osmo-bts-litecell15/misc/lc15bts_par.c
+++ b/src/osmo-bts-litecell15/misc/lc15bts_par.c
@@ -144,7 +144,7 @@
 		return -EIO;
 	}
 
-	fsync(fp);
+	fsync(fileno(fp));
 	fclose(fp);
 	return 0;
 }
@@ -176,7 +176,7 @@
 
         rc = fwrite(buf, 1, size, fp);
 
-        fsync(fp);
+        fsync(fileno(fp));
         fclose(fp);
 
         return rc;
@@ -225,7 +225,7 @@
 		fclose(fp);
 		return -EIO;
 	}
-	fsync(fp);
+	fsync(fileno(fp));
 	fclose(fp);
 
 	return 0;

-- 
To view, visit https://gerrit.osmocom.org/9535
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7efb7280363b3a021b30c3b4eacb3aab70e9c8da
Gerrit-Change-Number: 9535
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180611/0eb53092/attachment.htm>


More information about the gerrit-log mailing list