Changeset 170 for trunk/src/sh_utmp.c


Ignore:
Timestamp:
Apr 30, 2008, 11:56:45 PM (17 years ago)
Author:
katerina
Message:

Plenty of compiler warnings fixed, SQL query length fixed, doc update.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_utmp.c

    r154 r170  
    472472 *************/
    473473
    474 static int sh_utmp_init_internal ()
     474static int sh_utmp_init_internal (void)
    475475{
    476476
     
    516516 *************/
    517517#ifdef HAVE_UTTYPE
    518 static int sh_utmp_login_clean();
     518static int sh_utmp_login_clean(void);
    519519#endif
    520520
     
    633633int sh_utmp_set_login_timer (const char * c)
    634634{
    635   int retval = 0;
    636635  long val;
    637636
     
    644643                       _("utmp timer"), c);
    645644      SH_MUTEX_UNLOCK(mutex_thread_nolog);
    646       retval = -1;
    647     }
    648 
    649   val = (val <= 0 ? 60 : val);
     645      SL_RETURN((-1), _("sh_utmp_set_login_timer"));
     646    }
    650647
    651648  ShUtmpInterval = (time_t) val;
     
    670667static struct login_ct * login_ct_list = NULL;
    671668
    672 static int sh_utmp_login_clean()
     669static int sh_utmp_login_clean(void)
    673670{
    674671  struct login_ct * list = login_ct_list;
     
    776773 * by longjmp' warning. And no, 'volatile' proved insufficient.
    777774 */
    778 void * sh_dummy_userold = NULL;
    779 void * sh_dummy_user    = NULL;
     775static void * sh_dummy_userold = NULL;
     776static void * sh_dummy_user    = NULL;
    780777
    781778
     
    10631060  int           error;
    10641061  struct SH_UTMP_S * ut;
    1065   unsigned long this_read = 0;
     1062  unsigned long this_read;
    10661063  int           val_retry;
    10671064
     
    11231120   * we need to do this here
    11241121   */
     1122  this_read = 0;
     1123
    11251124  if (mode < 2)
    11261125    {
Note: See TracChangeset for help on using the changeset viewer.