CVS: rdesktop disk.c,1.47,1.48

Michael Gernoth <[email protected]>
Newsgroups gmane.network.rdesktop.cvs
Message-ID <[email protected]>
Update of /cvsroot/rdesktop/rdesktop
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2193

Modified Files:
	disk.c 
Log Message:
fix dummy_statfs


Index: disk.c
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/disk.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -C2 -d -r1.47 -r1.48
*** disk.c	2 Apr 2005 17:31:27 -0000	1.47
--- disk.c	2 Apr 2005 17:49:56 -0000	1.48
***************
*** 114,123 ****
  struct dummy_statfs_t
  {
! 	long f_bfree = 1;
! 	long f_bsize = 512;
! 	long f_blocks = 1;
  };
  #define STATFS_T dummy_statfs_t
! #define STATFS_FN(path,buf) 0
  #endif
  
--- 114,137 ----
  struct dummy_statfs_t
  {
! 	long f_bfree;
! 	long f_bsize;
! 	long f_blocks;
! 	int f_namelen;
! 	int f_namemax;
  };
+ 
+ int dummy_statfs(struct dummy_statfs_t *buf)
+ {
+ 	buf->f_blocks=262144;
+ 	buf->f_bfree=131072;
+ 	buf->f_bsize=512;
+ 	buf->f_namelen=255;
+ 	buf->f_namemax=255;
+ 
+ 	return 0;
+ }
+ 
  #define STATFS_T dummy_statfs_t
! #define STATFS_FN(path,buf) (dummy_statfs(buf))
  #endif
  



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.