On 31/05/15 13:39, Hartmut Knaack wrote: > Since errno contains the value of any of the defined error names, a > negation will not lead to the desired match. > > Signed-off-by: Hartmut Knaack <knaack.h@xxxxxx> Darn these pesky userspace conventions! Thanks ;) Applied. > --- > tools/iio/generic_buffer.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/iio/generic_buffer.c b/tools/iio/generic_buffer.c > index d52a55a..7e6f3f1 100644 > --- a/tools/iio/generic_buffer.c > +++ b/tools/iio/generic_buffer.c > @@ -321,7 +321,7 @@ int main(int argc, char **argv) > data, > toread*scan_size); > if (read_size < 0) { > - if (errno == -EAGAIN) { > + if (errno == EAGAIN) { > printf("nothing available\n"); > continue; > } else > -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html