Skip to content

Commit

Permalink
(LIB) journalreader.rs fix from_i32 on target_os=windows (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmoon79 authored Nov 24, 2024
1 parent 8ce35c2 commit 0eca750
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/readers/journalreader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ mod errno {
pub const ENOTSUP: Errno = Errno::EOPNOTSUPP;
}

pub const fn from_i32(e: i32) -> Errno {
pub const fn from_raw(e: i32) -> Errno {
use self::Errno::*;

match e {
Expand Down Expand Up @@ -424,8 +424,8 @@ mod errno {
}

impl Errno {
pub const fn from_i32(err: i32) -> Errno {
from_i32(err)
pub const fn from_raw(err: i32) -> Errno {
from_raw(err)
}
}
}
Expand Down Expand Up @@ -467,7 +467,7 @@ macro_rules! testing_force_error {
if $api_calls >= start && $api_calls <= end {
$api_calls += 1;
$api_call_errors += 1;
let e = Errno::from_raw(r.abs());
let e = from_raw!(r.abs());
def1o!("{}() FORCE_ERROR_RANGE {}; {:?}", $func_name, r, e);
let err = JournalReader::Error_from_Errno(r, &e, $func_name, $path);
return $err_type(err);
Expand Down

0 comments on commit 0eca750

Please sign in to comment.