Commit Graph

13 Commits

Author SHA1 Message Date
Xin LI
4c1f1c62ca Cleanup usr.sbin/fd* so they can compile under WARNS=6.
fdcontrol/fdcontrol.c:
	- Add const constraint to an intermediate value
	  which is not supposed to be changed elsewhere.
fdread/fdread.c:
	- Use _devname in favor of devname to avoid name
	  conflicit.
	- -1 is less than any positive number so in order
	  to get the block to function, we should get the
	  block a little earlier.
	- Cast to remove signed when we are sure that a
	  return value is positive, or is compared with
	  an positive number (tracknumber of a floppy
	  disk is not likely to have UINT_MAX/2 anyway)
fdread/fdutil.c:
	- Use more specific initializer
fdwrite/fdwrite.c:
	- Use static on format_track since it's not
	  referenced in other places.
	- Use const char* to represent string constant.

Bump WARNS accordingly.
2005-01-08 15:46:06 +00:00
Yoshihiro Takahashi
1a06a03cb8 Add PC98 supports.
Submitted by:	Watanabe Kazuhiro <CQG00620@nifty.ne.jp> (mostly)
2004-03-28 13:42:27 +00:00
David E. O'Brien
90e655ea4e Perform a major cleanup of the usr.sbin Makefiles.
These are not perfectly in agreement with each other style-wise, but they
are orders of orders of magnitude more consistent style-wise than before.
2001-07-20 06:20:32 +00:00
Joerg Wunsch
4f0b1b7805 Make fdformat WARN=2 ready. 2001-07-03 21:43:41 +00:00
Ruslan Ermilov
ac731e6941 Fixed the world breakage in rev. 1.8 (space after -I).
While here, removed the GCCism (replaced with WARNS?=1).
2001-07-03 09:48:28 +00:00
Joerg Wunsch
e42ad56f1a Use the printstatus() function from ${.CURDIR}/../fdread/fdutil.c to
give a bit more information about up to 10 errors encountered during
formatting (unless -q has been specified, of course).

While being here, removed a bitrotten comment in the Makefile, and
kill the old Emacs local variable stuff at the end of fdformat.c
that's no longer useful anway.
2001-07-02 21:24:03 +00:00
Ruslan Ermilov
345e52e742 - Backout botched attempt to introduce MANSECT feature.
- MAN[1-9] -> MAN.
2001-03-26 14:42:20 +00:00
Ruslan Ermilov
c73e22c3d4 Set the default manual section for usr.sbin/ to 8. 2001-03-20 18:17:26 +00:00
Joerg Wunsch
9a89db44b8 Transfer speed definitions are now also found in <machine/ioctl_fd.h>.
Remove the old include file, since it used to be in a non-public place.
1994-09-25 18:44:26 +00:00
Poul-Henning Kamp
cb3131379f Added a missing ${DESTDIR}. The real problem is that stuff related to
floppy formatting is in /sys/i386/isa/fdreg.h, it should be in /usr/include
somewhere ??
1994-09-18 07:42:11 +00:00
David Greenman
f38ec702f9 Fix include path. 1994-09-17 17:55:03 +00:00
Joerg Wunsch
538788f367 Make use of the new FDOPT_NORETRY facility. It does not make sense to
verify formatted tracks with fully retryng. The head should not be moved
in either case.
Also some minor copyright cleanup.
1994-05-22 17:43:34 +00:00
Andrey A. Chernov
4f81180d76 We got now floppy formatter 1994-01-26 23:44:34 +00:00