Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 May 2025 00:56:22 GMT
From:      Robert Wing <rew@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: e623b0dc6552 - main - newfs: remove write-only variable
Message-ID:  <202505280056.54S0uM7i092038@gitrepo.freebsd.org>

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

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

commit e623b0dc6552218369b34bd7884304c7481d4b9a
Author:     Robert Wing <rew@FreeBSD.org>
AuthorDate: 2025-05-28 00:55:49 +0000
Commit:     Robert Wing <rew@FreeBSD.org>
CommitDate: 2025-05-28 00:55:49 +0000

    newfs: remove write-only variable
---
 sbin/newfs/newfs.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sbin/newfs/newfs.c b/sbin/newfs/newfs.c
index 49bd8b7dc4b6..9c45c9150955 100644
--- a/sbin/newfs/newfs.c
+++ b/sbin/newfs/newfs.c
@@ -105,7 +105,6 @@ struct uufsd disk;		/* libufs disk structure */
 static char	device[MAXPATHLEN];
 static u_char   bootarea[BBSIZE];
 static int	is_file;		/* work on a file, not a device */
-static char	*dkname;
 static char	*disktype;
 
 static void getfssize(intmax_t *, const char *p, intmax_t, intmax_t);
@@ -330,7 +329,6 @@ main(int argc, char *argv[])
 	if ((st.st_mode & S_IFMT) != S_IFCHR) {
 		warn("%s: not a character-special device", special);
 		is_file = 1;	/* assume it is a file */
-		dkname = special;
 		if (sectorsize == 0)
 			sectorsize = 512;
 		mediasize = st.st_size;



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