From bc0fbbfe823f771ff3580fb6f861f28573135354 Mon Sep 17 00:00:00 2001 From: bernard Date: Thu, 15 Jun 2017 14:37:18 +0800 Subject: [PATCH] [DFS] change the cmd to long data type. --- components/dfs/include/dfs_posix.h | 2 +- components/dfs/src/dfs_posix.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/dfs/include/dfs_posix.h b/components/dfs/include/dfs_posix.h index 3e6f5f180d..2e417c1461 100644 --- a/components/dfs/include/dfs_posix.h +++ b/components/dfs/include/dfs_posix.h @@ -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); diff --git a/components/dfs/src/dfs_posix.c b/components/dfs/src/dfs_posix.c index 58db600eb8..0f1d9569e6 100644 --- a/components/dfs/src/dfs_posix.c +++ b/components/dfs/src/dfs_posix.c @@ -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; -- GitLab