Jelajahi Sumber

fix idiotic const-correctness error in lio_listio

i blame this one on posix for using hideous const-qualified double
pointers which are unusable without hideous casts.
Rich Felker 13 tahun lalu
induk
melakukan
144c951b0d
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/aio/lio_listio.c

+ 1 - 1
src/aio/lio_listio.c

@@ -30,7 +30,7 @@ static int lio_wait(struct lio_state *st)
 			}
 			return 0;
 		}
-		if (aio_suspend(cbs, cnt, 0))
+		if (aio_suspend((void *)cbs, cnt, 0))
 			return -1;
 	}
 }