Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Apr 2021 21:51:37 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 8ef97d2ba339 - main - dconschat: Remove support for FreeBSD 4.x and earlier.
Message-ID:  <202104202151.13KLpbNN019837@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=8ef97d2ba339f84d96b0c68235da92903fbf54ce

commit 8ef97d2ba339f84d96b0c68235da92903fbf54ce
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2021-04-20 21:46:56 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2021-04-20 21:51:31 +0000

    dconschat: Remove support for FreeBSD 4.x and earlier.
    
    Sponsored by:           Netflix
---
 usr.sbin/dconschat/dconschat.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/usr.sbin/dconschat/dconschat.c b/usr.sbin/dconschat/dconschat.c
index 6d4750585df6..c7e21460226c 100644
--- a/usr.sbin/dconschat/dconschat.c
+++ b/usr.sbin/dconschat/dconschat.c
@@ -383,11 +383,7 @@ dconschat_fetch_header(struct dcons_state *dc)
 	}
 	if (ntohl(dbuf.version) != DCONS_VERSION) {
 		snprintf(ebuf, sizeof(ebuf),
-#if __FreeBSD_version < 500000
-		    "wrong version %ld,%d",
-#else
 		    "wrong version %d,%d",
-#endif
 		    ntohl(dbuf.version), DCONS_VERSION);
 		/* XXX exit? */
 		dconschat_ready(dc, 0, ebuf);
@@ -419,13 +415,8 @@ dconschat_fetch_header(struct dcons_state *dc)
 
 		if (verbose) {
 			printf("port %d   size offset   gen   pos\n", j);
-#if __FreeBSD_version < 500000
-			printf("output: %5d %6ld %5d %5d\n"
-				"input : %5d %6ld %5d %5d\n",
-#else
 			printf("output: %5d %6d %5d %5d\n"
 				"input : %5d %6d %5d %5d\n",
-#endif
 			o->size, ntohl(dbuf.ooffset[j]), o->gen, o->pos,
 			i->size, ntohl(dbuf.ioffset[j]), i->gen, i->pos);
 		}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202104202151.13KLpbNN019837>