patch-ircd_s_misc_c 755 B

123456789101112131415161718
  1. $OpenBSD: patch-ircd_s_misc_c,v 1.1 2015/05/17 11:20:50 sthen Exp $
  2. --- ircd/s_misc.c.orig Tue Jun 6 23:34:58 2000
  3. +++ ircd/s_misc.c Sun May 17 12:17:57 2015
  4. @@ -385,10 +385,10 @@ char *comment; /* Reason for the exit */
  5. on_for = timeofday - sptr->firsttime + 1;
  6. # if defined(USE_SYSLOG) && defined(SYSLOG_USERS)
  7. syslog(LOG_NOTICE,
  8. - "%s (%3d:%02d:%02d): %s@%s [%s] %c\n",
  9. + "%s (%3lld:%02lld:%02lld): %s@%s [%s] %c\n",
  10. myctime(sptr->firsttime),
  11. - on_for / 3600, (on_for % 3600)/60,
  12. - on_for % 60,
  13. + (long long)on_for / 3600, ((long long)on_for % 3600)/60,
  14. + (long long)on_for % 60,
  15. sptr->user->username, sptr->user->host,
  16. sptr->auth, sptr->exitc);
  17. # endif