Fix a warning on amd64 caused by using int for request argument instead of

unsigned long:

WARNING pid 12888 (zfs/zpool): ioctl sign-extension ioctl ffffffffcc285aXX

Reported by:	kris
This commit is contained in:
Pawel Jakub Dawidek 2008-11-18 00:03:38 +00:00
parent 0a4acb2e3d
commit e80ccae7ed
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=185039
2 changed files with 2 additions and 2 deletions

View File

@ -319,7 +319,7 @@ extern void zpool_set_history_str(const char *subcommand, int argc,
extern int zpool_stage_history(libzfs_handle_t *, const char *);
extern void zpool_obj_to_path(zpool_handle_t *, uint64_t, uint64_t, char *,
size_t len);
extern int zfs_ioctl(libzfs_handle_t *, int, struct zfs_cmd *);
extern int zfs_ioctl(libzfs_handle_t *, unsigned long, struct zfs_cmd *);
extern int zpool_get_physpath(zpool_handle_t *, char *);
/*
* Basic handle manipulations. These functions do not create or destroy the

View File

@ -758,7 +758,7 @@ zcmd_read_dst_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc, nvlist_t **nvlp)
}
int
zfs_ioctl(libzfs_handle_t *hdl, int request, zfs_cmd_t *zc)
zfs_ioctl(libzfs_handle_t *hdl, unsigned long request, zfs_cmd_t *zc)
{
int error;