CVS: beepcore-c/core/generic CBEEP.c,1.14,1.15 channel_0.c,1.9,1.10

Chris Hanson <[email protected]> Fri, 02 Aug 2002 08:45:10 -0700
Newsgroups gmane.network.beep.beepcore.c.cvs
Message-ID <[email protected]>
Update of /cvsroot/beepcore-c/beepcore-c/core/generic
In directory usw-pr-cvs1:/tmp/cvs-serv13268/core/generic

Modified Files:
	CBEEP.c channel_0.c 
Log Message:
Fix remaining gcc warnings.  A couple of these were bugs.


Index: CBEEP.c
===================================================================
RCS file: /cvsroot/beepcore-c/beepcore-c/core/generic/CBEEP.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** CBEEP.c	2 Aug 2002 15:08:32 -0000	1.14
--- CBEEP.c	2 Aug 2002 15:45:08 -0000	1.15
***************
*** 99,103 ****
  
    /* First figure out how big it will be, or a little bigger. */
!   size = 0;
    size += strlen(greet_head_1);
    if (features && *features) {
--- 99,103 ----
  
    /* First figure out how big it will be, or a little bigger. */
!   size = 1;			/* account for '\0' at end */
    size += strlen(greet_head_1);
    if (features && *features) {

Index: channel_0.c
===================================================================
RCS file: /cvsroot/beepcore-c/beepcore-c/core/generic/channel_0.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** channel_0.c	2 Aug 2002 15:08:32 -0000	1.9
--- channel_0.c	2 Aug 2002 15:45:08 -0000	1.10
***************
*** 138,149 ****
    struct frame * thisframe;
    struct chan0_msg mychan0_msg, * mychan0_ptr = NULL;
!   struct profile * profilelist = NULL, * thisprofile, * newprofile = NULL;
!   struct profile ** current_profile = NULL;
    char ** current_string = NULL;
  
!   char * currchar, * matchstr, * matchfailstr, * thischar;
    char * stringseg;
    long segsize, currbyte, stringsegsize, chan0msgsize, profileC;
!   long parselevel, stridx, matchstridx;
  
    long  state[CHAN0_PARSE_STATE_MAX_DEPTH], stateidx = 0;
--- 138,149 ----
    struct frame * thisframe;
    struct chan0_msg mychan0_msg, * mychan0_ptr = NULL;
!   struct profile * profilelist = NULL, * thisprofile = NULL;
!   struct profile * newprofile = NULL, ** current_profile = NULL;
    char ** current_string = NULL;
  
!   char * currchar, * matchstr = NULL, * matchfailstr = NULL, * thischar;
    char * stringseg;
    long segsize, currbyte, stringsegsize, chan0msgsize, profileC;
!   long parselevel, stridx = 0, matchstridx = 0;
  
    long  state[CHAN0_PARSE_STATE_MAX_DEPTH], stateidx = 0;



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf