Ignore:
Timestamp:
Oct 19, 2011, 12:16:31 AM (13 years ago)
Author:
katerina
Message:

Fix for ticket #267 (Multiple compiler warnings with gcc 4.6.1).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_log_check.c

    r358 r362  
    10271027 *  Reader for binary files
    10281028 */
    1029 sh_string * sh_binary_reader (void * s, size_t size, struct sh_logfile * logfile)
     1029sh_string * sh_binary_reader (void * s, size_t size,
     1030                              struct sh_logfile * logfile)
    10301031{
    10311032  size_t         status;
     
    10401041      if (status != 1)
    10411042        {
     1043          memset(s, '\0', size);
    10421044          if (ferror(logfile->fp) && (logfile->flags & SH_LOGFILE_PIPE) == 0)
    10431045            {
     
    10531055          sl_fclose(FIL__, __LINE__, logfile->fp);
    10541056          logfile->fp = NULL;
    1055           memset(s, '\0', size);
    10561057          return NULL;
    10571058        }
     
    13871388      retval = -1;
    13881389    }
    1389 
    1390   sh_logmon_interval = (time_t) val;
    1391   SL_RETURN(0, _("sh_logmon_set_interval"));
     1390  else
     1391    {
     1392      sh_logmon_interval = (time_t) val;
     1393    }
     1394  SL_RETURN(retval, _("sh_logmon_set_interval"));
    13921395}
    13931396
Note: See TracChangeset for help on using the changeset viewer.