diff options
author | obrien <obrien@FreeBSD.org> | 2003-05-04 02:54:49 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2003-05-04 02:54:49 +0000 |
commit | c3792f8bd926539973db34033a84333af43d74b1 (patch) | |
tree | 36c385908e5b4ad0d9a8d2e599febfeef1cf455a /contrib/telnet | |
parent | 3d2af48d351f39ec9434ba144d9cb3c4bb5bde43 (diff) | |
download | FreeBSD-src-c3792f8bd926539973db34033a84333af43d74b1.zip FreeBSD-src-c3792f8bd926539973db34033a84333af43d74b1.tar.gz |
Use __FBSDID vs. rcsid[]. Also protect sccs[] and copyright[] from GCC 3.3.
Diffstat (limited to 'contrib/telnet')
-rw-r--r-- | contrib/telnet/libtelnet/auth.c | 10 | ||||
-rw-r--r-- | contrib/telnet/libtelnet/enc_des.c | 10 | ||||
-rw-r--r-- | contrib/telnet/telnet/authenc.c | 8 | ||||
-rw-r--r-- | contrib/telnet/telnet/commands.c | 8 | ||||
-rw-r--r-- | contrib/telnet/telnet/main.c | 8 | ||||
-rw-r--r-- | contrib/telnet/telnet/network.c | 8 | ||||
-rw-r--r-- | contrib/telnet/telnet/ring.c | 8 | ||||
-rw-r--r-- | contrib/telnet/telnet/sys_bsd.c | 12 | ||||
-rw-r--r-- | contrib/telnet/telnet/telnet.c | 8 | ||||
-rw-r--r-- | contrib/telnet/telnet/terminal.c | 8 | ||||
-rw-r--r-- | contrib/telnet/telnet/utilities.c | 8 | ||||
-rw-r--r-- | contrib/telnet/telnetd/authenc.c | 8 | ||||
-rw-r--r-- | contrib/telnet/telnetd/global.c | 8 | ||||
-rw-r--r-- | contrib/telnet/telnetd/slc.c | 8 | ||||
-rw-r--r-- | contrib/telnet/telnetd/state.c | 8 | ||||
-rw-r--r-- | contrib/telnet/telnetd/sys_term.c | 8 | ||||
-rw-r--r-- | contrib/telnet/telnetd/telnetd.c | 8 | ||||
-rw-r--r-- | contrib/telnet/telnetd/termstat.c | 8 | ||||
-rw-r--r-- | contrib/telnet/telnetd/utility.c | 8 |
19 files changed, 79 insertions, 81 deletions
diff --git a/contrib/telnet/libtelnet/auth.c b/contrib/telnet/libtelnet/auth.c index 1f61c3e..4642655 100644 --- a/contrib/telnet/libtelnet/auth.c +++ b/contrib/telnet/libtelnet/auth.c @@ -30,16 +30,16 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $FreeBSD$ */ -#include <sys/cdefs.h> - -__FBSDID("$FreeBSD$"); - +#if 0 #ifndef lint static const char sccsid[] = "@(#)auth.c 8.3 (Berkeley) 5/30/95"; #endif /* not lint */ +#endif +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); + /* * Copyright (C) 1990 by the Massachusetts Institute of Technology diff --git a/contrib/telnet/libtelnet/enc_des.c b/contrib/telnet/libtelnet/enc_des.c index cb70b57..2f7fe6e 100644 --- a/contrib/telnet/libtelnet/enc_des.c +++ b/contrib/telnet/libtelnet/enc_des.c @@ -29,17 +29,15 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. - * - * $FreeBSD$ */ -#include <sys/cdefs.h> - -__FBSDID("$FreeBSD$"); - +#if 0 #ifndef lint static const char sccsid[] = "@(#)enc_des.c 8.3 (Berkeley) 5/30/95"; #endif /* not lint */ +#endif +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); #ifdef ENCRYPTION # ifdef AUTHENTICATION diff --git a/contrib/telnet/telnet/authenc.c b/contrib/telnet/telnet/authenc.c index 718ab84..85f389b 100644 --- a/contrib/telnet/telnet/authenc.c +++ b/contrib/telnet/telnet/authenc.c @@ -31,13 +31,13 @@ * SUCH DAMAGE. */ -#include <sys/cdefs.h> - -__FBSDID("$FreeBSD$"); - +#if 0 #ifndef lint static const char sccsid[] = "@(#)authenc.c 8.1 (Berkeley) 6/6/93"; #endif +#endif +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); #ifdef AUTHENTICATION #ifdef ENCRYPTION diff --git a/contrib/telnet/telnet/commands.c b/contrib/telnet/telnet/commands.c index c450f43..3221699 100644 --- a/contrib/telnet/telnet/commands.c +++ b/contrib/telnet/telnet/commands.c @@ -31,13 +31,13 @@ * SUCH DAMAGE. */ -#include <sys/cdefs.h> - -__FBSDID("$FreeBSD$"); - +#if 0 #ifndef lint static const char sccsid[] = "@(#)commands.c 8.4 (Berkeley) 5/30/95"; #endif +#endif +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); #include <sys/param.h> #include <sys/un.h> diff --git a/contrib/telnet/telnet/main.c b/contrib/telnet/telnet/main.c index 1e973b4..de7e60c 100644 --- a/contrib/telnet/telnet/main.c +++ b/contrib/telnet/telnet/main.c @@ -31,13 +31,13 @@ * SUCH DAMAGE. */ -#include <sys/cdefs.h> - -__FBSDID("$FreeBSD$"); - +#if 0 #ifndef lint static const char sccsid[] = "@(#)main.c 8.3 (Berkeley) 5/30/95"; #endif +#endif +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); #include <sys/types.h> #include <sys/socket.h> diff --git a/contrib/telnet/telnet/network.c b/contrib/telnet/telnet/network.c index 889b1b8..bb75d63 100644 --- a/contrib/telnet/telnet/network.c +++ b/contrib/telnet/telnet/network.c @@ -31,13 +31,13 @@ * SUCH DAMAGE. */ -#include <sys/cdefs.h> - -__FBSDID("$FreeBSD$"); - +#if 0 #ifndef lint static const char sccsid[] = "@(#)network.c 8.2 (Berkeley) 12/15/93"; #endif +#endif +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); #include <sys/types.h> #include <sys/socket.h> diff --git a/contrib/telnet/telnet/ring.c b/contrib/telnet/telnet/ring.c index 8fd14a7..6c2b7ef 100644 --- a/contrib/telnet/telnet/ring.c +++ b/contrib/telnet/telnet/ring.c @@ -31,13 +31,13 @@ * SUCH DAMAGE. */ -#include <sys/cdefs.h> - -__FBSDID("$FreeBSD$"); - +#if 0 #ifndef lint static const char sccsid[] = "@(#)ring.c 8.2 (Berkeley) 5/30/95"; #endif +#endif +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); /* * This defines a structure for a ring buffer. diff --git a/contrib/telnet/telnet/sys_bsd.c b/contrib/telnet/telnet/sys_bsd.c index 5d931bf..45ef1e2 100644 --- a/contrib/telnet/telnet/sys_bsd.c +++ b/contrib/telnet/telnet/sys_bsd.c @@ -31,15 +31,13 @@ * SUCH DAMAGE. */ -#include <sys/cdefs.h> -#include <stdlib.h> -#include <err.h> - -__FBSDID("$FreeBSD$"); - +#if 0 #ifndef lint static const char sccsid[] = "@(#)sys_bsd.c 8.4 (Berkeley) 5/30/95"; #endif +#endif +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); /* * The following routines try to encapsulate what is system dependent @@ -49,9 +47,11 @@ static const char sccsid[] = "@(#)sys_bsd.c 8.4 (Berkeley) 5/30/95"; #include <sys/param.h> #include <sys/socket.h> #include <sys/time.h> +#include <err.h> #include <errno.h> #include <fcntl.h> #include <signal.h> +#include <stdlib.h> #include <unistd.h> #include <arpa/telnet.h> diff --git a/contrib/telnet/telnet/telnet.c b/contrib/telnet/telnet/telnet.c index ab0faf4..2e29989 100644 --- a/contrib/telnet/telnet/telnet.c +++ b/contrib/telnet/telnet/telnet.c @@ -31,13 +31,13 @@ * SUCH DAMAGE. */ -#include <sys/cdefs.h> - -__FBSDID("$FreeBSD$"); - +#if 0 #ifndef lint static const char sccsid[] = "@(#)telnet.c 8.4 (Berkeley) 5/30/95"; #endif +#endif +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); #include <sys/types.h> diff --git a/contrib/telnet/telnet/terminal.c b/contrib/telnet/telnet/terminal.c index 0244cac..3dda1c5 100644 --- a/contrib/telnet/telnet/terminal.c +++ b/contrib/telnet/telnet/terminal.c @@ -31,13 +31,13 @@ * SUCH DAMAGE. */ -#include <sys/cdefs.h> - -__FBSDID("$FreeBSD$"); - +#if 0 #ifndef lint static const char sccsid[] = "@(#)terminal.c 8.2 (Berkeley) 2/16/95"; #endif +#endif +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); #include <arpa/telnet.h> #include <sys/types.h> diff --git a/contrib/telnet/telnet/utilities.c b/contrib/telnet/telnet/utilities.c index b78d281..b0cfe37 100644 --- a/contrib/telnet/telnet/utilities.c +++ b/contrib/telnet/telnet/utilities.c @@ -31,13 +31,13 @@ * SUCH DAMAGE. */ -#include <sys/cdefs.h> - -__FBSDID("$FreeBSD$"); - +#if 0 #ifndef lint static const char sccsid[] = "@(#)utilities.c 8.3 (Berkeley) 5/30/95"; #endif +#endif +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); #define TELOPTS #define TELCMDS diff --git a/contrib/telnet/telnetd/authenc.c b/contrib/telnet/telnetd/authenc.c index fd5f585..9377b52 100644 --- a/contrib/telnet/telnetd/authenc.c +++ b/contrib/telnet/telnetd/authenc.c @@ -31,13 +31,13 @@ * SUCH DAMAGE. */ -#include <sys/cdefs.h> - -__FBSDID("$FreeBSD$"); - +#if 0 #ifndef lint static const char sccsid[] = "@(#)authenc.c 8.2 (Berkeley) 5/30/95"; #endif +#endif +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); #ifdef AUTHENTICATION #ifdef ENCRYPTION diff --git a/contrib/telnet/telnetd/global.c b/contrib/telnet/telnetd/global.c index 0cf95db..2ed82d0 100644 --- a/contrib/telnet/telnetd/global.c +++ b/contrib/telnet/telnetd/global.c @@ -31,13 +31,13 @@ * SUCH DAMAGE. */ -#ifndef lint #if 0 +#ifndef lint static const char sccsid[] = "@(#)global.c 8.1 (Berkeley) 6/4/93"; -#endif -static const char rcsid[] = - "$FreeBSD$"; #endif /* not lint */ +#endif +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); /* * Allocate global variables. We do this diff --git a/contrib/telnet/telnetd/slc.c b/contrib/telnet/telnetd/slc.c index d4eee1a..ad03441 100644 --- a/contrib/telnet/telnetd/slc.c +++ b/contrib/telnet/telnetd/slc.c @@ -31,13 +31,13 @@ * SUCH DAMAGE. */ -#include <sys/cdefs.h> - -__FBSDID("$FreeBSD$"); - +#if 0 #ifndef lint static const char sccsid[] = "@(#)slc.c 8.2 (Berkeley) 5/30/95"; #endif +#endif +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); #include "telnetd.h" diff --git a/contrib/telnet/telnetd/state.c b/contrib/telnet/telnetd/state.c index 93de48e..9db4516 100644 --- a/contrib/telnet/telnetd/state.c +++ b/contrib/telnet/telnetd/state.c @@ -31,13 +31,13 @@ * SUCH DAMAGE. */ -#include <sys/cdefs.h> - -__FBSDID("$FreeBSD$"); - +#if 0 #ifndef lint static const char sccsid[] = "@(#)state.c 8.5 (Berkeley) 5/30/95"; #endif +#endif +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); #include <stdarg.h> #include "telnetd.h" diff --git a/contrib/telnet/telnetd/sys_term.c b/contrib/telnet/telnetd/sys_term.c index 1e832e3..151c5b4 100644 --- a/contrib/telnet/telnetd/sys_term.c +++ b/contrib/telnet/telnetd/sys_term.c @@ -31,13 +31,13 @@ * SUCH DAMAGE. */ -#include <sys/cdefs.h> - -__FBSDID("$FreeBSD$"); - +#if 0 #ifndef lint static const char sccsid[] = "@(#)sys_term.c 8.4+1 (Berkeley) 5/30/95"; #endif +#endif +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); #include <sys/types.h> #include <sys/tty.h> diff --git a/contrib/telnet/telnetd/telnetd.c b/contrib/telnet/telnetd/telnetd.c index 02f21cf..6a5a623 100644 --- a/contrib/telnet/telnetd/telnetd.c +++ b/contrib/telnet/telnetd/telnetd.c @@ -31,13 +31,13 @@ * SUCH DAMAGE. */ -#include <sys/cdefs.h> - -__FBSDID("$FreeBSD$"); - +#if 0 #ifndef lint static const char sccsid[] = "@(#)telnetd.c 8.4 (Berkeley) 5/30/95"; #endif +#endif +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); #include "telnetd.h" #include "pathnames.h" diff --git a/contrib/telnet/telnetd/termstat.c b/contrib/telnet/telnetd/termstat.c index c7dc845..36f5997 100644 --- a/contrib/telnet/telnetd/termstat.c +++ b/contrib/telnet/telnetd/termstat.c @@ -31,13 +31,13 @@ * SUCH DAMAGE. */ -#include <sys/cdefs.h> - -__FBSDID("$FreeBSD$"); - +#if 0 #ifndef lint static const char sccsid[] = "@(#)termstat.c 8.2 (Berkeley) 5/30/95"; #endif +#endif +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); #include "telnetd.h" diff --git a/contrib/telnet/telnetd/utility.c b/contrib/telnet/telnetd/utility.c index 4bbbfb8..54e2327 100644 --- a/contrib/telnet/telnetd/utility.c +++ b/contrib/telnet/telnetd/utility.c @@ -31,13 +31,13 @@ * SUCH DAMAGE. */ -#ifndef lint #if 0 +#ifndef lint static const char sccsid[] = "@(#)utility.c 8.4 (Berkeley) 5/30/95"; -#endif -static const char rcsid[] = - "$FreeBSD$"; #endif /* not lint */ +#endif +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); #ifdef __FreeBSD__ #include <locale.h> |