[Tinyos-commits] CVS: tinyos-1.x/tools/src/sf serialsource.c, 1.7, 1.8

David Gay idgay at users.sourceforge.net
Mon May 15 08:55:14 PDT 2006


Update of /cvsroot/tinyos/tinyos-1.x/tools/src/sf
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv25183

Modified Files:
	serialsource.c 
Log Message:
Bug fixes from Bart Braem <bart.braem at gmail.com>


Index: serialsource.c
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/tools/src/sf/serialsource.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** serialsource.c	29 Nov 2004 18:27:04 -0000	1.7
--- serialsource.c	15 May 2006 15:55:12 -0000	1.8
***************
*** 272,276 ****
        if (src)
  	{
! 	  memset(src, 0, sizeof src);
  	  src->fd = fd;
  	  src->non_blocking = non_blocking;
--- 272,276 ----
        if (src)
  	{
! 	  memset(src, 0, sizeof *src);
  	  src->fd = fd;
  	  src->non_blocking = non_blocking;
***************
*** 390,394 ****
  {
    /* I'm assuming short queues */
!   struct packet_list *entry = malloc(sizeof *packet), **last;
  
    if (!entry)
--- 390,394 ----
  {
    /* I'm assuming short queues */
!   struct packet_list *entry = malloc(sizeof *entry), **last;
  
    if (!entry)



More information about the Tinyos-commits mailing list