errno is not negative
[fio.git] / engines / net.c
index 45914776d0b9c47a4d5110d7c575c7f4f4ddf2c7..94bae95af988e167143c089d015a1eda58b81d05 100644 (file)
@@ -165,13 +165,13 @@ static int fio_netio_splice_out(struct thread_data *td, struct io_u *io_u)
 #else
 static int fio_netio_splice_in(struct thread_data *td, struct io_u *io_u)
 {
-       errno = -EOPNOTSUPP;
+       errno = EOPNOTSUPP;
        return -1;
 }
 
 static int fio_netio_splice_out(struct thread_data *td, struct io_u *io_u)
 {
-       errno = -EOPNOTSUPP;
+       errno = EOPNOTSUPP;
        return -1;
 }
 #endif