[parted-devel] Problem with Linux "3.0"
Richard W.M. Jones
rjones at redhat.com
Tue Jun 7 16:34:32 UTC 2011
On Tue, Jun 07, 2011 at 09:31:07AM -0700, H. Peter Anvin wrote:
> On 06/07/2011 09:27 AM, Jim Meyering wrote:
> >
> > However, I don't want to ignore the return value.
> >
> > How about the patch below?
> > I left your name on it.
> > Let me know if that's ok.
> >
>
> assert (n >= 2);
>
> ... would be more succinct to me and more future-proof, but that's just
> stylistic...
Surely it returns 2 or 3, else it's an error? (ie. it could never
return, say, 4).
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top
More information about the parted-devel
mailing list