Commit Graph

22 Commits

Author SHA1 Message Date
Roland C. Dowdeswell
cc47c8fa7b Turn on -Wextra -Wno-sign-compare -Wno-unused-paramter and fix issues.
We turn on a few extra warnings and fix the fallout that occurs
when building with --enable-developer.  Note that we get different
warnings on different machines and so this will be a work in
progress.  So far, we have built on NetBSD/amd64 5.99.64 (which
uses gcc 4.5.3) and Ubuntu 10.04.3 LTS (which uses gcc 4.4.3).

Notably, we fixed

	1.  a lot of missing structure initialisers,

	2.  unchecked return values for functions that glibc
	    marks as __attribute__((warn-unused-result)),

	3.  made minor modifications to slc and asn1_compile
	    which can generate code which generates warnings,
	    and

	4.  a few stragglers here and there.

We turned off the extended warnings for many programs in appl/ as
they are nearing the end of their useful lifetime, e.g.  rsh, rcp,
popper, ftp and telnet.

Interestingly, glibc's strncmp() macro needed to be worked around
whereas the function calls did not.

We have not yet tried this on 32 bit platforms, so there will be
a few more warnings when we do.
2012-02-20 19:45:41 +00:00
Love Hornquist Astrand
0879b9831a remove trailing whitespace 2011-05-21 11:57:31 -07:00
Joerg Pulz
6f5b42957e add some more #ifdefs to compile on utmpx only systems
Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-10-31 00:38:41 -07:00
Love Hörnquist Åstrand
6937d41a02 remove trailing whitespace
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 09:21:03 +00:00
Love Hörnquist Åstrand
e172367898 switch to utf8 encoding of all files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23814 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 08:53:55 +00:00
Love Hörnquist Åstrand
aed77c3b59 ASL_KEY_FACILITY missing on Mac OS X, 10.4, From Mans Nilsson.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23732 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-07 21:04:51 +00:00
Love Hörnquist Åstrand
da109cd27f Use asl for logging ftpd wtmp messages.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22951 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-10 10:44:14 +00:00
Assar Westerlund
92e24cae77 add roken.h
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9079 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-09-19 13:17:20 +00:00
Johan Danielsson
3ca5f8150f remove advertising clause
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7463 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-02 16:58:55 +00:00
Johan Danielsson
84bd0825e7 HAVE_UT_* -> HAVE_STRUCT_UTMP*_UT_*
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5458 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-01 09:50:29 +00:00
Assar Westerlund
9dd5cb570c rename logwtmp -> ftpd_logwtmp not to conflict with libc.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4291 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-01-09 20:30:20 +00:00
Assar Westerlund
13e01878ae get rid of a warning by some code restructuring (is this really worth
it?)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4197 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-12-14 23:53:05 +00:00
Assar Westerlund
1f499a90c6 Check for `_PATH_WTMP'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1774 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-05-25 15:17:56 +00:00
Assar Westerlund
154f8de95d fix
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1755 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-05-20 22:05:47 +00:00
Assar Westerlund
c82515b578 Add support for logging to wtmpx
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1751 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-05-20 20:30:24 +00:00
Johan Danielsson
e1282e7dfc Update copyright strings.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1541 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-04-01 08:19:18 +00:00
Johan Danielsson
fec9e52d71 Fix copyright
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@901 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-10-27 16:50:18 +00:00
Björn Groenvall
3e317bb818 Fix copyright.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@893 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-10-26 16:05:04 +00:00
Unknown User d91-jda
5bfe98834d Slightly different functionality. Works on systems that has more
fields in struct utmp such as OSF/1.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@470 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-05-04 02:20:26 +00:00
Unknown User d91-jda
d796b39576 Fixes.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@395 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-04-17 04:08:31 +00:00
Unknown User d91-jda
7686c38ea0 Version 0.0
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@387 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-04-08 22:51:40 +00:00
Unknown User d91-jda
14930c1ca3 Initial revision
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@237 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-02-08 22:14:12 +00:00