Browse Source

fixed zmodem syntax error.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1836 bbd45198-f89e-11dd-88c7-29a3b14d5316
wuyangyong 13 years ago
parent
commit
22049c80d5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      components/utilities/zmodem/rz.c

+ 2 - 1
components/utilities/zmodem/rz.c

@@ -5,6 +5,7 @@
  * Change Logs:
  * Date           Author       Notes
  * 2011-03-29     itspy       
+ * 2011-12-12     aozima       fixed syntax error.       
  */
 
 #include <rtthread.h>
@@ -299,7 +300,7 @@ static rt_err_t zget_file_info(char *name, struct zfile *zf)
     zf->fname = full_path;
 	p = strlen(name)+name+1;	   
 	sscanf((const char *)p, "%ld%lo%o", &zf->bytes_total,&zf->ctime,&zf->mode);
-#ifdef defined(RT_USING_DFS) && defined(DFS_USING_WORKDIR)
+#if defined(RT_USING_DFS) && defined(DFS_USING_WORKDIR)
 	dfs_statfs(working_directory,&buf);
 	if (zf->bytes_total > (buf.f_blocks * buf.f_bfree))
 	{