Changeset 170 for trunk/src/sh_utmp.c
- Timestamp:
- Apr 30, 2008, 11:56:45 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_utmp.c
r154 r170 472 472 *************/ 473 473 474 static int sh_utmp_init_internal ( )474 static int sh_utmp_init_internal (void) 475 475 { 476 476 … … 516 516 *************/ 517 517 #ifdef HAVE_UTTYPE 518 static int sh_utmp_login_clean( );518 static int sh_utmp_login_clean(void); 519 519 #endif 520 520 … … 633 633 int sh_utmp_set_login_timer (const char * c) 634 634 { 635 int retval = 0;636 635 long val; 637 636 … … 644 643 _("utmp timer"), c); 645 644 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 } 650 647 651 648 ShUtmpInterval = (time_t) val; … … 670 667 static struct login_ct * login_ct_list = NULL; 671 668 672 static int sh_utmp_login_clean( )669 static int sh_utmp_login_clean(void) 673 670 { 674 671 struct login_ct * list = login_ct_list; … … 776 773 * by longjmp' warning. And no, 'volatile' proved insufficient. 777 774 */ 778 void * sh_dummy_userold = NULL;779 void * sh_dummy_user = NULL;775 static void * sh_dummy_userold = NULL; 776 static void * sh_dummy_user = NULL; 780 777 781 778 … … 1063 1060 int error; 1064 1061 struct SH_UTMP_S * ut; 1065 unsigned long this_read = 0;1062 unsigned long this_read; 1066 1063 int val_retry; 1067 1064 … … 1123 1120 * we need to do this here 1124 1121 */ 1122 this_read = 0; 1123 1125 1124 if (mode < 2) 1126 1125 {
Note:
See TracChangeset
for help on using the changeset viewer.