Commit Graph

18 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
Love Hornquist Astrand
07a81e6c86 use krb5_err 2009-11-03 23:29:15 -08:00
Love Hornquist Astrand
0c112865b4 Drop RCSID 2009-08-20 19:03:15 -07:00
Love Hornquist Astrand
a4df44985d use default princial if none is set [CID-48] 2009-07-30 13:22:46 +02: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
578e7425fa Use argument as principal if passed an argument. Bug report from
Douglas E. Engert


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19920 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-15 23:21:32 +00:00
Love Hörnquist Åstrand
ac8c82785c s/optind/optidx/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15541 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-01 07:14:58 +00:00
Johan Danielsson
26457b7135 replace krb5_free_creds_contents by krb5_free_cred_contents
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13790 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-25 19:25:35 +00:00
Love Hörnquist Åstrand
5d190295aa add context argument to krb5_get_init_creds_opt_alloc
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12783 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-08 15:28:20 +00:00
Love Hörnquist Åstrand
61e14619de use krb5_get_init_creds_opt_alloc/krb5_get_init_creds_opt_free
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12737 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 00:31:42 +00:00
Assar Westerlund
3e6771f647 do add optind
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10549 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-24 01:08:13 +00:00
Assar Westerlund
b3880607d5 add --help/--verify
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10547 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-24 00:59:25 +00:00
Assar Westerlund
633782864b (main): handle krb5_init_context failure consistently
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9443 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-31 08:05:03 +00:00
Johan Danielsson
c5b916ca6f remove advertising clause
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7464 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-02 17:05:13 +00:00
Johan Danielsson
263ed8d3ed Remove unused variable.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3975 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-12 01:30:07 +00:00
Assar Westerlund
b6ca48a02b new file
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2799 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-08 03:56:21 +00:00