fix another possible passing of unsigned int into a function requiring a signed int, CID 10665
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40907 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
2ffe72d7ff
commit
b4725a13b7
@ -117,9 +117,13 @@ void usb_beceem_trace(bool force, const char* func, const char *fmt, ...)
|
||||
}
|
||||
|
||||
mutex_lock(&gLogLock);
|
||||
int fd = open(gLogFilePath, O_WRONLY | O_APPEND);
|
||||
write(fd, buffer, strlen(buffer));
|
||||
close(fd);
|
||||
int filehandle = open(gLogFilePath, O_WRONLY | O_APPEND);
|
||||
|
||||
if (filehandle >= 0) {
|
||||
write(filehandle, buffer, strlen(buffer));
|
||||
close(filehandle);
|
||||
}
|
||||
|
||||
mutex_unlock(&gLogLock);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user