aboutsummaryrefslogtreecommitdiff
path: root/CCache/stats.c
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2008-12-07 10:57:43 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2008-12-07 10:57:43 +0000
commit3054ed120a0363007c607ac6c20458ec2d5bd183 (patch)
treee10aa8e53e949eca1bba2117b2ba833b6fb76086 /CCache/stats.c
parent0a101fba3bf3a961a35f8b89ae034d7381f036dd (diff)
downloadswig-3054ed120a0363007c607ac6c20458ec2d5bd183.tar.gz
Clean up gcc-4.3 warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10971 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'CCache/stats.c')
-rw-r--r--CCache/stats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/CCache/stats.c b/CCache/stats.c
index 8be1879d1..f87264794 100644
--- a/CCache/stats.c
+++ b/CCache/stats.c
@@ -91,7 +91,7 @@ static void write_stats(int fd, unsigned counters[STATS_END])
if (len >= (int)sizeof(buf)-1) fatal("stats too long?!");
lseek(fd, 0, SEEK_SET);
- write(fd, buf, len);
+ if (write(fd, buf, len) == -1) fatal("could not write stats");
}