faubackup/src faubackup-gather.c,1.6,1.7 faubackup-scatter.c,1.8,1.9

Martin Waitz <[email protected]> Thu, 18 Mar 2004 01:14:06 +0000
Newsgroups gmane.comp.sysutils.backup.faubackup.cvs
Message-ID <[email protected]>
Update of /cvsroot/faubackup/faubackup/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27784/src

Modified Files:
	faubackup-gather.c faubackup-scatter.c 
Log Message:
don't do pointer arithmetic on void*


Index: faubackup-scatter.c
===================================================================
RCS file: /cvsroot/faubackup/faubackup/src/faubackup-scatter.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** faubackup-scatter.c	18 Mar 2004 00:35:27 -0000	1.8
--- faubackup-scatter.c	18 Mar 2004 01:13:58 -0000	1.9
***************
*** 53,57 ****
  recv_buf(void *buf, long long len, int mayfail)
  {
! 	void *b;
  	long long ret;
  
--- 53,57 ----
  recv_buf(void *buf, long long len, int mayfail)
  {
! 	unsigned char *b;
  	long long ret;
  
***************
*** 75,79 ****
  	}
  
! 	return( b-buf );
  }
  
--- 75,79 ----
  	}
  
! 	return( b - (unsigned char*)buf );
  }
  

Index: faubackup-gather.c
===================================================================
RCS file: /cvsroot/faubackup/faubackup/src/faubackup-gather.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** faubackup-gather.c	18 Mar 2004 00:35:27 -0000	1.6
--- faubackup-gather.c	18 Mar 2004 01:13:58 -0000	1.7
***************
*** 49,54 ****
  
  static void
! send_buf(void *buf, long long len)
  {
  	int ret;
  
--- 49,55 ----
  
  static void
! send_buf(void *_buf, long long len)
  {
+ 	unsigned char *buf = _buf;
  	int ret;
  



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click