|
1 | 1 | #[cfg(not(target_os = "dragonfly"))]
|
2 | 2 | use libc;
|
3 |
| -use libc::c_int; |
| 3 | +use libc::{c_int, c_void}; |
4 | 4 | use std::{fmt, io, error};
|
5 | 5 | use {Error, Result};
|
6 | 6 |
|
@@ -103,8 +103,8 @@ impl ErrnoSentinel for i64 {
|
103 | 103 | fn sentinel() -> Self { -1 }
|
104 | 104 | }
|
105 | 105 |
|
106 |
| -impl ErrnoSentinel for *mut libc::c_void { |
107 |
| - fn sentinel() -> Self { (-1 as isize) as *mut libc::c_void } |
| 106 | +impl ErrnoSentinel for *mut c_void { |
| 107 | + fn sentinel() -> Self { (-1 as isize) as *mut c_void } |
108 | 108 | }
|
109 | 109 |
|
110 | 110 | impl error::Error for Errno {
|
@@ -521,9 +521,6 @@ fn desc(errno: Errno) -> &'static str {
|
521 | 521 | #[cfg(target_os = "openbsd")]
|
522 | 522 | EIPSEC => "IPsec processing failure",
|
523 | 523 |
|
524 |
| - #[cfg(target_os = "dragonfly")] |
525 |
| - EUNUSED94 | EUNUSED95 | EUNUSED96 | EUNUSED97 | EUNUSED98 => "Unused", |
526 |
| - |
527 | 524 | #[cfg(target_os = "dragonfly")]
|
528 | 525 | EASYNC => "Async",
|
529 | 526 | }
|
@@ -1373,11 +1370,6 @@ mod consts {
|
1373 | 1370 | ENOLINK = libc::ENOLINK,
|
1374 | 1371 | EPROTO = libc::EPROTO,
|
1375 | 1372 | ENOMEDIUM = libc::ENOMEDIUM,
|
1376 |
| - EUNUSED94 = libc::EUNUSED94, |
1377 |
| - EUNUSED95 = libc::EUNUSED95, |
1378 |
| - EUNUSED96 = libc::EUNUSED96, |
1379 |
| - EUNUSED97 = libc::EUNUSED97, |
1380 |
| - EUNUSED98 = libc::EUNUSED98, |
1381 | 1373 | EASYNC = libc::EASYNC,
|
1382 | 1374 | }
|
1383 | 1375 |
|
@@ -1485,11 +1477,6 @@ mod consts {
|
1485 | 1477 | libc::ENOLINK => ENOLINK,
|
1486 | 1478 | libc::EPROTO => EPROTO,
|
1487 | 1479 | libc::ENOMEDIUM => ENOMEDIUM,
|
1488 |
| - libc::EUNUSED94 => EUNUSED94, |
1489 |
| - libc::EUNUSED95 => EUNUSED95, |
1490 |
| - libc::EUNUSED96 => EUNUSED96, |
1491 |
| - libc::EUNUSED97 => EUNUSED97, |
1492 |
| - libc::EUNUSED98 => EUNUSED98, |
1493 | 1480 | libc::EASYNC => EASYNC,
|
1494 | 1481 | _ => UnknownErrno,
|
1495 | 1482 | }
|
|
0 commit comments