Branch: Tag:

2007-11-10

2007-11-10 21:23:14 by Martin Nilsson <mani@lysator.liu.se>

Fix warnings.

Rev: src/post_modules/Shuffler/d_source_pikestream.c:1.8
Rev: src/post_modules/Shuffler/e_source_block_pikestream.c:1.6

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: e_source_block_pikestream.c,v 1.5 2004/10/16 07:27:29 agehall Exp $ + || $Id: e_source_block_pikestream.c,v 1.6 2007/11/10 21:23:14 nilsson Exp $   */      #include "global.h"
35:   static struct data get_data( struct source *_s, off_t len )   {    struct pf_source *s = (struct pf_source *)_s; -  struct data res; +  struct data res = { 0, 0, 0, NULL };    -  res.len = 0; -  res.off = 0; -  res.do_free = 0; -  +     if( s->len>0 && len > s->len ) {    len = s->len;    s->s.eof = 1;