Changeset 279 for trunk/src/sh_utmp.c
- Timestamp:
- Apr 30, 2010, 11:55:18 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_utmp.c
r262 r279 225 225 }, 226 226 { 227 N_("logincheckfirst"), 228 sh_login_set_checklevel 229 }, 230 { 231 N_("logincheckoutlier"), 232 sh_login_set_siglevel 233 }, 234 { 235 N_("logincheckdate"), 236 sh_login_set_def_allow 237 }, 238 { 239 N_("logincheckuserdate"), 240 sh_login_set_user_allow 241 }, 242 { 227 243 NULL, 228 244 NULL … … 237 253 ShUtmpActive = S_TRUE; 238 254 ShUtmpInterval = 300; 255 256 sh_login_reset(); 239 257 return; 240 258 } … … 498 516 int sh_utmp_init (struct mod_type * arg) 499 517 { 518 #if !defined(HAVE_PTHREAD) 519 (void) arg; 520 #endif 500 521 if (ShUtmpActive == BAD) 501 522 return SH_MOD_FAILED; … … 548 569 init_done = 0; 549 570 571 #if defined(HAVE_PTHREAD) 550 572 sh_inotify_remove(&inotify_watch); 573 #endif 551 574 552 575 SL_RETURN( (0), _("sh_utmp_end")); … … 557 580 { 558 581 set_defaults(); 582 #if defined(HAVE_PTHREAD) 559 583 sh_inotify_remove(&inotify_watch); 584 #endif 560 585 return 0; 561 586 } … … 1206 1231 } 1207 1232 1233 extern void sh_ltrack_check(struct SH_UTMP_S * ut); 1208 1234 1209 1235 static void sh_utmp_login_morechecks(struct SH_UTMP_S * ut) 1210 1236 { 1211 if (ut) 1212 return; 1237 sh_ltrack_check(ut); 1213 1238 return; 1214 1239 } … … 1216 1241 static void sh_utmp_logout_morechecks(struct log_user * user) 1217 1242 { 1218 if (user) 1219 return; 1243 (void) user; 1220 1244 return; 1221 1245 }
Note:
See TracChangeset
for help on using the changeset viewer.