The branch main has been updated by rew: URL: https://cgit.FreeBSD.org/src/commit/?id=e623b0dc6552218369b34bd7884304c7481d4b9a
commit e623b0dc6552218369b34bd7884304c7481d4b9a Author: Robert Wing <r...@freebsd.org> AuthorDate: 2025-05-28 00:55:49 +0000 Commit: Robert Wing <r...@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;