CVS: rdesktop rdpsnd.c,1.39,1.40

Jay Sorg <[email protected]> Wed, 17 Jan 2007 21:40:01 -0800
Newsgroups gmane.network.rdesktop.cvs
Message-ID <[email protected]>
Update of /cvsroot/rdesktop/rdesktop
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv14465

Modified Files:
	rdpsnd.c 
Log Message:
remove g++ errors and warnings

Index: rdpsnd.c
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/rdpsnd.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -C2 -d -r1.39 -r1.40
*** rdpsnd.c	8 Jan 2007 04:47:06 -0000	1.39
--- rdpsnd.c	18 Jan 2007 05:39:58 -0000	1.40
***************
*** 65,69 ****
  
  static char record_buffer[8192];
! static int record_buffer_size;
  
  static uint8 packet_opcode;
--- 65,69 ----
  
  static char record_buffer[8192];
! static uint32 record_buffer_size;
  
  static uint8 packet_opcode;
***************
*** 154,158 ****
  rdpsnd_record(const void *data, unsigned int size)
  {
! 	int remain;
  
  	assert(rec_device_open);
--- 154,158 ----
  rdpsnd_record(const void *data, unsigned int size)
  {
! 	uint32 remain;
  
  	assert(rec_device_open);
***************
*** 611,615 ****
  	pkglen = s->end - s->p;
  	/* str_handle_lines requires null terminated strings */
! 	buf = xmalloc(pkglen + 1);
  	STRNCPY(buf, (char *) s->p, pkglen + 1);
  
--- 611,615 ----
  	pkglen = s->end - s->p;
  	/* str_handle_lines requires null terminated strings */
! 	buf = (char *) xmalloc(pkglen + 1);
  	STRNCPY(buf, (char *) s->p, pkglen + 1);
  
***************
*** 663,667 ****
  	drivers = NULL;
  
! 	packet.data = xmalloc(65536);
  	packet.p = packet.end = packet.data;
  	packet.size = 0;
--- 663,667 ----
  	drivers = NULL;
  
! 	packet.data = (uint8 *) xmalloc(65536);
  	packet.p = packet.end = packet.data;
  	packet.size = 0;


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV