Skip to content
Snippets Groups Projects
Commit 6b5706dc authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Merge branch 'time-utc-cast' into 'master'

Use as-less cast for UTC string

See merge request redox-os/relibc!331
parents 41036ce4 f49be317
No related branches found
No related tags found
1 merge request!331Use as-less cast for UTC string
Pipeline #9129 passed with warnings
...@@ -10,7 +10,7 @@ pub mod sys; ...@@ -10,7 +10,7 @@ pub mod sys;
#[path = "redox.rs"] #[path = "redox.rs"]
pub mod sys; pub mod sys;
pub(crate) const UTC: *const c_char = b"UTC\0" as *const u8 as *const c_char; pub(crate) const UTC: *const c_char = b"UTC\0".as_ptr().cast();
pub(crate) const DAY_NAMES: [&str; 7] = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]; pub(crate) const DAY_NAMES: [&str; 7] = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
pub(crate) const MON_NAMES: [&str; 12] = [ pub(crate) const MON_NAMES: [&str; 12] = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment