projects
/
platform
/
upstream
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2d70f2
)
tests: Fix warnings in config-parser-test
author
Kristian Høgsberg
<krh@bitplanet.net>
Mon, 8 Jul 2013 23:06:06 +0000
(19:06 -0400)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Tue, 9 Jul 2013 06:02:11 +0000
(
02:02
-0400)
tests/config-parser-test.c
patch
|
blob
|
history
diff --git
a/tests/config-parser-test.c
b/tests/config-parser-test.c
index
12a8fbd
..
83e89ba
100644
(file)
--- a/
tests/config-parser-test.c
+++ b/
tests/config-parser-test.c
@@
-25,6
+25,7
@@
#include <string.h>
#include <assert.h>
#include <errno.h>
+#include <unistd.h>
#include "config-parser.h"
@@
-37,7
+38,7
@@
run_test(const char *text)
fd = mkstemp(file);
len = write(fd, text, strlen(text));
- assert(len == strlen(text));
+ assert(len ==
(int)
strlen(text));
config = weston_config_parse(fd);
close(fd);