aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2005-01-08 15:46:06 +0000
committerXin LI <delphij@FreeBSD.org>2005-01-08 15:46:06 +0000
commit4c1f1c62ca07a2fa300a24cb4700980773156eb2 (patch)
treee7b7f4702f5752e13e6128d82e58a62e3c2805f7 /usr.bin
parente152198a83e2ec2740914a5f08d883808a4d4a2b (diff)
downloadsrc-4c1f1c62ca07a2fa300a24cb4700980773156eb2.tar.gz
src-4c1f1c62ca07a2fa300a24cb4700980773156eb2.zip
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.
Notes
Notes: svn path=/head/; revision=139905
Diffstat (limited to 'usr.bin')
0 files changed, 0 insertions, 0 deletions