diff --git a/ext/fracker.patch b/ext/fracker.patch index 6a8f07fa..90f02f47 100644 --- a/ext/fracker.patch +++ b/ext/fracker.patch @@ -104,14 +104,14 @@ new file mode 100644 +{ + struct iovec to_write[2]; + -+ /* TODO properly check the writev syscall */ ++ /* TODO properly check the writev syscall (XXX warning is suppressed) */ + + /* write the object followed by a newline then cleanup */ + to_write[0].iov_base = (void *)json_object_to_json_string(object); + to_write[0].iov_len = strlen(to_write[0].iov_base); + to_write[1].iov_base = "\n"; + to_write[1].iov_len = 1; -+ writev(fd, to_write, 2); ++ (void)!writev(fd, to_write, 2); + json_object_put(object); +} +