Merge "fix valgrind ioctl warning."
This commit is contained in:
commit
01502981cd
@ -345,7 +345,7 @@ static int open_driver()
|
|||||||
int fd = open("/dev/binder", O_RDWR);
|
int fd = open("/dev/binder", O_RDWR);
|
||||||
if (fd >= 0) {
|
if (fd >= 0) {
|
||||||
fcntl(fd, F_SETFD, FD_CLOEXEC);
|
fcntl(fd, F_SETFD, FD_CLOEXEC);
|
||||||
int vers;
|
int vers = 0;
|
||||||
status_t result = ioctl(fd, BINDER_VERSION, &vers);
|
status_t result = ioctl(fd, BINDER_VERSION, &vers);
|
||||||
if (result == -1) {
|
if (result == -1) {
|
||||||
ALOGE("Binder ioctl to obtain version failed: %s", strerror(errno));
|
ALOGE("Binder ioctl to obtain version failed: %s", strerror(errno));
|
||||||
|
Loading…
Reference in New Issue
Block a user