1. 09 Jun, 2019 2 commits
  2. 03 May, 2019 1 commit
  3. 22 Nov, 2018 1 commit
  4. 17 Nov, 2018 1 commit
  5. 13 Sep, 2018 1 commit
  6. 28 Feb, 2017 1 commit
  7. 26 Jan, 2017 3 commits
  8. 30 May, 2016 1 commit
  9. 07 Oct, 2015 1 commit
  10. 20 Jan, 2015 1 commit
  11. 14 Nov, 2014 1 commit
  12. 05 Nov, 2014 3 commits
  13. 04 Nov, 2014 2 commits
  14. 03 Jun, 2014 2 commits
  15. 11 Feb, 2013 1 commit
  16. 20 Jan, 2013 2 commits
  17. 16 Dec, 2012 4 commits
    • Alan Coopersmith's avatar
      Fix some clang warnings about implicit conversions · 64e77380
      Alan Coopersmith authored
      sessreg.c:360:43: warning: implicit conversion changes signedness:
            'unsigned long' to 'off_t' (aka 'long') [-Wsign-conversion]
                              sysnerr (lseek(llog, (long) pwd->pw_uid*sizeof(ll), 0)
                                       ~~~~~       ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
      sessreg.c:360:25: warning: implicit conversion changes signedness: 'long' to
            'unsigned long' [-Wsign-conversion]
                              sysnerr (lseek(llog, (long) pwd->pw_uid*sizeof(ll), 0)
                                                   ^~~~~~~~~~~~~~~~~~~
      
      sessreg.c:405:7: warning: implicit conversion loses integer precision: 'size_t'
            (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
                      i = strlen (line);
                        ~ ^~~~~~~~~~~~~
      sessreg.c:406:9: warning: comparison of integers of different signs: 'int' and
            'unsigned long' [-Wsign-compare]
                      if (i >= sizeof (u->ut_id))
                          ~ ^  ~~~~~~~~~~~~~~~~~
      
      sessreg.c:494:7: warning: implicit conversion loses integer precision: 'size_t'
            (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
                      i = strlen (line);
                        ~ ^~~~~~~~~~~~~
      sessreg.c:495:9: warning: comparison of integers of different signs: 'int' and
            'unsigned long' [-Wsign-compare]
                      if (i >= sizeof (u->ut_id))
                          ~ ^  ~~~~~~~~~~~~~~~~~
      Signed-off-by: Alan Coopersmith's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
      64e77380
    • Ed Schouten's avatar
      Remove dubious code. · 88bf1500
      Ed Schouten authored
      The NO_UTMP definition is set on non-FreeBSD, non-OpenBSD, BSD-based
      systems. When looking at the commonly used BSD-based operating systems,
      they either use utmpx, or I can't think of a reason why the utmp code
      wouldn't work.
      
      If it turns out some obscure operating system breaks because of this
      change, we should replace this by something more accurate, such as an
      Autoconf check or an #ifdef specific to that operating system.
      Signed-off-by: default avatarEd Schouten <ed@80386.nl>
      Signed-off-by: Alan Coopersmith's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
      88bf1500
    • Ed Schouten's avatar
      Make the `line' variable local to main(). · d6570f51
      Ed Schouten authored
      It is only used within main(). This prevents a compilation failure when
      building with -Wshadow.
      Signed-off-by: default avatarEd Schouten <ed@80386.nl>
      Signed-off-by: Alan Coopersmith's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
      d6570f51
    • Ed Schouten's avatar
      Place NetBSD specific #defines in the proper place. · 8963bc3d
      Ed Schouten authored
      For all the other databases (utmp, wtmp, lastlog) we already do it in
      sessreg.h. There's no reason why we should place the utmpx specific ones
      in sessreg.c.
      Signed-off-by: default avatarEd Schouten <ed@80386.nl>
      Signed-off-by: Alan Coopersmith's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
      8963bc3d
  18. 08 Jul, 2012 1 commit
  19. 22 Oct, 2011 1 commit
  20. 26 Sep, 2011 1 commit
  21. 26 Jun, 2011 7 commits
  22. 25 Jun, 2011 2 commits