tests: Fix warnings in config-parser-test
This commit is contained in:
parent
d2d70f2aeb
commit
ac3a8b83fd
@ -25,6 +25,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
#include "config-parser.h"
|
#include "config-parser.h"
|
||||||
|
|
||||||
@ -37,7 +38,7 @@ run_test(const char *text)
|
|||||||
|
|
||||||
fd = mkstemp(file);
|
fd = mkstemp(file);
|
||||||
len = write(fd, text, strlen(text));
|
len = write(fd, text, strlen(text));
|
||||||
assert(len == strlen(text));
|
assert(len == (int) strlen(text));
|
||||||
|
|
||||||
config = weston_config_parse(fd);
|
config = weston_config_parse(fd);
|
||||||
close(fd);
|
close(fd);
|
||||||
|
Loading…
Reference in New Issue
Block a user