CVS: beepcore-c/profiles cyrus-profiles.c,1.11,1.12 sasl-profiles.c,1.10,1.11

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/profiles
In directory usw-pr-cvs1:/tmp/cvs-serv13268/profiles

Modified Files:
	cyrus-profiles.c sasl-profiles.c 
Log Message:
Fix remaining gcc warnings.  A couple of these were bugs.


Index: cyrus-profiles.c
===================================================================
RCS file: /cvsroot/beepcore-c/beepcore-c/profiles/cyrus-profiles.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** cyrus-profiles.c	2 Aug 2002 15:08:32 -0000	1.11
--- cyrus-profiles.c	2 Aug 2002 15:45:08 -0000	1.12
***************
*** 782,794 ****
             char             *data,
             int               size) {
!     int            code,
                     result,
                     status;
      unsigned       ilen,
                     olen;
!     char          *payload;
      const char    *iptr,
                    *optr,
!                   *reason;
      DIAGNOSTIC     ds,
                    *d = &ds,
--- 782,794 ----
             char             *data,
             int               size) {
!     int            code = 0,
                     result,
                     status;
      unsigned       ilen,
                     olen;
!     char          *payload = NULL;
      const char    *iptr,
                    *optr,
!                   *reason = NULL;
      DIAGNOSTIC     ds,
                    *d = &ds,
***************
*** 1236,1241 ****
      sasl_ssf_t       *ssf;
  
!     if (sasl_getprop (il -> pl_conn, SASL_SSF, (const void **) &ssf)
!             != SASL_OK) {
          bp_log (bp, LOG_PROF, 6,
                  "unable to determine SASL_SSF (cyrus code %d) %s",
--- 1236,1241 ----
      sasl_ssf_t       *ssf;
  
!     result = sasl_getprop (il -> pl_conn, SASL_SSF, (const void **) &ssf);
!     if (result != SASL_OK) {
          bp_log (bp, LOG_PROF, 6,
                  "unable to determine SASL_SSF (cyrus code %d) %s",
***************
*** 1294,1299 ****
      }
  
!     bp_push_rwfilter (bp, sasl_reader, il -> pl_conn, sasl_writer,
!                       il -> pl_conn, sasl_destroy, NULL);
  #ifdef  tuning
      bpc_tuning_reset_complete (pi -> channel, PRO_ACTION_SUCCESS,
--- 1294,1299 ----
      }
  
!     bp_push_rwfilter (bp_get_iostate (bp), sasl_reader, il -> pl_conn,
! 		      sasl_writer, il -> pl_conn, sasl_destroy, NULL);
  #ifdef  tuning
      bpc_tuning_reset_complete (pi -> channel, PRO_ACTION_SUCCESS,

Index: sasl-profiles.c
===================================================================
RCS file: /cvsroot/beepcore-c/beepcore-c/profiles/sasl-profiles.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** sasl-profiles.c	2 Aug 2002 15:08:32 -0000	1.10
--- sasl-profiles.c	2 Aug 2002 15:45:08 -0000	1.11
***************
*** 212,216 ****
  
      if (po -> piggyback_length > 0) {
!         int     result;
  
          switch (il -> pl_task) {
--- 212,216 ----
  
      if (po -> piggyback_length > 0) {
!         int result = SASL_COMPLETE;
  
          switch (il -> pl_task) {
***************
*** 397,401 ****
      char                *buffer,
                          *payload,
!                         *response;
      FRAME               *f;
      struct configobj    *appconfig = bp_get_config (pi -> channel -> conn);
--- 397,401 ----
      char                *buffer,
                          *payload,
!                         *response = NULL;
      FRAME               *f;
      struct configobj    *appconfig = bp_get_config (pi -> channel -> conn);



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