Browse Source

[DFS] change the cmd to long data type.

bernard 8 years ago
parent
commit
bc0fbbfe82
2 changed files with 2 additions and 2 deletions
  1. 1 1
      components/dfs/include/dfs_posix.h
  2. 1 1
      components/dfs/src/dfs_posix.c

+ 1 - 1
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);

+ 1 - 1
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;