tests: Fix warnings in config-parser-test
authorKristian Høgsberg <krh@bitplanet.net>
Mon, 8 Jul 2013 23:06:06 +0000 (19:06 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 9 Jul 2013 06:02:11 +0000 (02:02 -0400)
tests/config-parser-test.c

index 12a8fbd..83e89ba 100644 (file)
@@ -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);