git.ucc.asn.au
/
matches
/
MCTX3420.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Automatic commit of irc logs
[matches/MCTX3420.git]
/
server
/
actuators
/
filetest.c
diff --git
a/server/actuators/filetest.c
b/server/actuators/filetest.c
index
697753a
..
8dcc9df
100644
(file)
--- a/
server/actuators/filetest.c
+++ b/
server/actuators/filetest.c
@@
-4,8
+4,10
@@
static FILE * f = NULL;
bool Filetest_Init(const char * name, int id)
{
f = fopen(name, "w");
+ if (f == NULL)
+ return false;
setbuf(f, NULL); // Unbuffer
- return
(f != NULL)
;
+ return
true
;
}
bool Filetest_Set(int id, double value)
UCC
git Repository :: git.ucc.asn.au