diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2013-07-08 19:06:06 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-07-09 02:02:11 -0400 |
commit | ac3a8b83fd900c8d38f808f1255e4b1d0ee50c5c (patch) | |
tree | 45068e20eafd84cb4abcac2ced5fae085faba5f5 /tests | |
parent | d2d70f2aeb370b0827e8c66fa9e7e2a26b1d6648 (diff) |
tests: Fix warnings in config-parser-test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/config-parser-test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/config-parser-test.c b/tests/config-parser-test.c index 12a8fbd8..83e89ba4 100644 --- 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); |