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.
equivalent, so merge them, this also makes it work better on machines
that puts their devices in a subdirectory to /dev
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15003 ec53bebd-3082-4978-b11e-865c3cabbd6b
Now actually builds (not including util) with DEC "cc -std1" and Sun
"acc -Xc". There are still major prototype conflicts, but there isn't
much to do about this.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@192 ec53bebd-3082-4978-b11e-865c3cabbd6b
The following rules apply to the initial banner message printed by telnetd:
if libc contains cgetent and the "default" entry in /etc/gettytab
defines an im - use that.
else if configured with a specific default im (--enable-default-im) use that
else use a sensible default "systemname os-release (hostname) (ttyname)"
The im can now contain these vaiables:
%s - system name (uname -s)
%r - system release (uname -r)
%v - system version (uname -v)
%m - machine (uname -m)
%h - hostname
%t - tty
%d - date
Default for Cray is "Cray UNICOS (%h) (%t)", (this should probably change)
for AIX: "%s %v.%r (%h) (%t)"
and for everything else: "%s %r (%h) (%t)".
These defaults are defined in ext.h
If the system does not have uname(2), %s defaults to "Unix"
and %r, %v and %m to the-empty-string.
Is this clear enough?
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@59 ec53bebd-3082-4978-b11e-865c3cabbd6b