| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. Both trackbuf and vrfybuf are initialized to
zero (NULL). While it's okay to initialize pointers
to zero, to keep consistency, as they're explicitly
pointers, it's better to just use NULL ((void *)0)
instead of 0 (both are equivalent to the compilers).
2. Call free() for both trackbuf and vrfybuf after
their job has been done.
3. Remove the register keyword. Compilers generally
ignore this keyword (except for very very old compilers
and CPUs).
4. Remove the ctype.h header. It's not being used
anywhere in the file.
Signed-off-by: rilysh <nightquick@proton.me>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1059
|
| |
|
|
| |
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
|
| |
|
|
| |
Notes:
svn path=/head/; revision=326408
|
| |
|
|
|
|
|
|
|
|
|
| |
The kernel does not log floppy media errors anymore.
In fdcontrol, do always open the file descriptor in read-only mode so
it can operate on read-only media, as there is no longer a separate
control device to operate on.
Notes:
svn path=/head/; revision=194892
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=139905
|
| |
|
|
|
|
|
| |
Approved by: das (mentor)
Notes:
svn path=/head/; revision=129863
|
| |
|
|
| |
Notes:
svn path=/head/; revision=93150
|
| |
|
|
|
|
|
|
|
| |
avoid blasting the syslog with error messages from bad floppies. Both
tools have their own error reporting anyway (which could easily be
cluttered by the syslog output on your terminal).
Notes:
svn path=/head/; revision=78858
|
| |
|
|
|
|
|
| |
tools in usr.sbin/fd*.
Notes:
svn path=/head/; revision=77801
|
| |
|
|
|
|
|
| |
Use _PATH_* where where possible.
Notes:
svn path=/head/; revision=69793
|
| |
|
|
| |
Notes:
svn path=/head/; revision=59651
|
| |
|
|
| |
Notes:
svn path=/head/; revision=50479
|
| |
|
|
| |
Notes:
svn path=/head/; revision=29559
|
| |
|
|
| |
Notes:
svn path=/head/; revision=22997
|
| |
|
|
|
|
|
|
|
|
|
| |
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.
Notes:
svn path=/head/; revision=21673
|
| |
|
|
|
|
|
|
| |
flag and some checking to see if it's even reasonable to ask for confirmation
at all.
Notes:
svn path=/head/; revision=18573
|
| |
|
|
| |
Notes:
svn path=/head/; revision=8857
|
| |
|
|
|
|
|
|
| |
necessary.
Requested by: phk
Notes:
svn path=/head/; revision=3592
|
|
|
it onto a bunch of floppies in a semi-intelligent way.
Useful for things like: tar cf - . | gzip -9 | fdwrite -d /dev/rfd0.1720 -v
Where it will keep asking for floppies until tar is done.
Notes:
svn path=/cvs2svn/branches/phk/; revision=2849
|