Commit Graph

23 Commits

Author SHA1 Message Date
Roland C. Dowdeswell
e8779d5d4a Add -Wshadow and deal with the warnings. 2012-02-21 11:17:55 +00:00
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
e334f05ab5 spelling 2010-10-27 21:13:31 -07:00
Love Hornquist Astrand
ef543041fc moving on top of ourself is simple 2010-10-07 00:01:24 -07:00
Love Hornquist Astrand
fe2dfe83a8 clean up and make work, require libheim-ipcs 2009-11-21 23:54:00 -08:00
Love Hörnquist Åstrand
4ff39ca5b3 switch to kcmuuid_t
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24017 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-11-02 07:16:53 +00:00
Love Hörnquist Åstrand
ca4645d263 handle return value of krb5_storage_{read,write}
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24011 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-11-02 07:15:45 +00:00
Love Hörnquist Åstrand
ad13c2b571 make get_first return uuid of cache, get_next fetch the next uuid and end_get do nothing but log
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24005 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-11-02 07:05:40 +00: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
360bfcab37 Check if new credential cache exists, if not create one.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22787 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-25 13:50:14 +00:00
Love Hörnquist Åstrand
abd1354315 Make work when moving to a non-existant cred-cache.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22785 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-25 13:33:42 +00:00
Love Hörnquist Åstrand
a760147457 first implementation of kcm-move-cache
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22777 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-25 12:20:55 +00:00
Love Hörnquist Åstrand
3556dc1513 s/krb5_free_creds_contents/krb5_free_cred_contents/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22112 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-03 19:34:33 +00:00
Love Hörnquist Åstrand
652da91adb Rename u_intXX_t to uintXX_t
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17447 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-05 10:52:01 +00:00
Love Hörnquist Åstrand
5fb033c34d Use the new unsigned integer storage types.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17430 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-04 09:59:04 +00:00
Love Hörnquist Åstrand
7a46951b5a (kcm_op_retrieve): remove unused variable
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16663 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-27 12:05:27 +00:00
Love Hörnquist Åstrand
87fd836b5f (kcm_op_retrieve): check server for krbtgt, not client
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15299 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-30 10:59:00 +00:00
Love Hörnquist Åstrand
90645a3e39 Add option to disallow getting krbtgt out from from KCM. KCM will do
the fetching part itself.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15296 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-30 10:17:43 +00:00
Love Hörnquist Åstrand
842f9eae85 fix error in last commit, use right function
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15229 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-24 18:07:25 +00:00
Love Hörnquist Åstrand
f3ab57d7bf Merge the description and function jumptables into one structure.
Use the length of the array when checking if opcode is value, not a constant.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15217 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-23 21:28:44 +00:00
Love Hörnquist Åstrand
77ebf59fe4 use -1 as the invalid pid number
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14559 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-02-03 12:33:45 +00:00
Luke Howard
cd8bcb8404 Initial version of KCM daemon
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14544 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-02-03 08:20:00 +00:00