* Fixed warnings.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36414 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
e4fe2e5a12
commit
46d3d6949b
@ -3,8 +3,10 @@
|
|||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
//! Devfs entry for raw bus access.
|
//! Devfs entry for raw bus access.
|
||||||
|
|
||||||
|
|
||||||
#include "scsi_internal.h"
|
#include "scsi_internal.h"
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -24,8 +26,9 @@ typedef struct bus_raw_info {
|
|||||||
|
|
||||||
|
|
||||||
static status_t
|
static status_t
|
||||||
scsi_bus_raw_init(device_node *node, void **cookie)
|
scsi_bus_raw_init(void *driverCookie, void **_cookie)
|
||||||
{
|
{
|
||||||
|
device_node *node = (device_node *)driverCookie;
|
||||||
device_node *parent;
|
device_node *parent;
|
||||||
bus_raw_info *bus;
|
bus_raw_info *bus;
|
||||||
|
|
||||||
@ -40,7 +43,7 @@ scsi_bus_raw_init(device_node *node, void **cookie)
|
|||||||
|
|
||||||
bus->node = node;
|
bus->node = node;
|
||||||
|
|
||||||
*cookie = bus;
|
*_cookie = bus;
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -53,7 +56,7 @@ scsi_bus_raw_uninit(void *bus)
|
|||||||
|
|
||||||
|
|
||||||
static status_t
|
static status_t
|
||||||
scsi_bus_raw_open(void *bus, const char *path, uint32 flags,
|
scsi_bus_raw_open(void *bus, const char *path, int openMode,
|
||||||
void **handle_cookie)
|
void **handle_cookie)
|
||||||
{
|
{
|
||||||
*handle_cookie = bus;
|
*handle_cookie = bus;
|
||||||
@ -76,7 +79,7 @@ scsi_bus_raw_free(void *cookie)
|
|||||||
|
|
||||||
|
|
||||||
static status_t
|
static status_t
|
||||||
scsi_bus_raw_control(void *_cookie, int32 op, void *data, size_t length)
|
scsi_bus_raw_control(void *_cookie, uint32 op, void *data, size_t length)
|
||||||
{
|
{
|
||||||
bus_raw_info *bus = _cookie;
|
bus_raw_info *bus = _cookie;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user