[DFS] change the cmd to long data type.

This commit is contained in:
bernard 2017-06-15 14:37:18 +08:00
parent b7cf723162
commit bc0fbbfe82
2 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ int unlink(const char *pathname);
int stat(const char *file, struct stat *buf);
int fstat(int fildes, struct stat *buf);
int fsync(int fildes);
int ioctl(int fildes, unsigned long cmd, void *data);
int ioctl(int fildes, long cmd, void *data);
/* directory api*/
int rmdir(const char *path);

View File

@ -427,7 +427,7 @@ RTM_EXPORT(fsync);
* @return 0 on successful completion. Otherwise, -1 shall be returned and errno
* set to indicate the error.
*/
int ioctl(int fildes, unsigned long cmd, void *data)
int ioctl(int fildes, long cmd, void *data)
{
int ret;
struct dfs_fd *d;