summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2009-09-08 14:15:40 -0500
committerDenis Kenzior <denkenz@gmail.com>2009-09-08 14:15:40 -0500
commit110dfb9e2ecc952bdbbce31f2d30010c952d65bd (patch)
tree85e47d350831685de1b04eaf2694d00f69507094 /src
parent17cb0ce3c4a936ed38109d1455178eb14f18ea07 (diff)
downloadofono-110dfb9e2ecc952bdbbce31f2d30010c952d65bd.tar.bz2
Fix style issue
Diffstat (limited to 'src')
-rw-r--r--src/sim.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sim.c b/src/sim.c
index a072c8cc..15b44c36 100644
--- a/src/sim.c
+++ b/src/sim.c
@@ -641,9 +641,9 @@ static gboolean cache_record(const char *path, int current, int record_len,
return FALSE;
if (lseek(fd, (current - 1) * record_len +
- SIM_CACHE_HEADER_SIZE, SEEK_SET) !=
- (off_t) -1)
+ SIM_CACHE_HEADER_SIZE, SEEK_SET) != (off_t) -1)
r = TFR(write(fd, data, record_len));
+
TFR(close(fd));
if (r < record_len) {