freebsd-dev/lib/libufs
Juli Mallett a506dcda3d Clean up error reporting in block.c, so that it gives honest error strings
for the sorts of errors we run into[1].  This also gives us room to put in a
vaguely appropriate casts to silence warnings since our compiler doesn't like
when we compare ssize_t to size_t[2].  Add a cast in sblock.c[3] to silence
a warning because of signed vs. size_t hell (again).  Clean up nearby
excessive parenthemutilation[4].

Reviewed by:	bde [2] [3]
Suggested by:	bde, many [1]
Submitted by:	bde [4]

An aside about [4], bde notes that we do not check for a negative value for
the fs bsize.  I'm nto going to do that in every situation we use it, one must
expect a reasonable program to pass down reasonable values.  Some foot shooting
protection I will tolerate, some I will not.  Also he suggests some possible
conditional improvements there, which I may take to heart.

PS: For me at least, this is now WARNS=5 clean...
2003-02-19 00:32:48 +00:00
..
block.c Clean up error reporting in block.c, so that it gives honest error strings 2003-02-19 00:32:48 +00:00
cgroup.c Store not only the current cylinder group in the series (i.e. next that needs 2003-01-19 05:46:23 +00:00
inode.c Nuke dumb error reporting code, people can just use disk::d_error. Unify the 2003-01-18 04:22:14 +00:00
libufs.h API for opening (and tracking) writable file descriptors per disk. 2003-01-29 23:19:46 +00:00
Makefile WARNS ?= 2, so idiocy like 1.12 of type.c doesn't have to happen again. 2003-01-30 00:11:01 +00:00
sblock.c Clean up error reporting in block.c, so that it gives honest error strings 2003-02-19 00:32:48 +00:00
type.c Missing "return 0" 2003-01-30 00:10:24 +00:00