Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
relibc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
redox-os
relibc
Merge requests
!331
Use as-less cast for UTC string
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Use as-less cast for UTC string
plimkilde/relibc:time-utc-cast
into
master
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Peter Limkilde Svendsen
requested to merge
plimkilde/relibc:time-utc-cast
into
master
4 years ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
Use a nicer, more specific way of casting for the
UTC
constant.
0
0
Merge request reports
Viewing commit
f49be317
Show latest version
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
f49be317
Use as-less cast
· f49be317
Peter Limkilde Svendsen
authored
4 years ago
src/header/time/constants.rs
+
1
−
1
Options
@@ -10,7 +10,7 @@ pub mod sys;
#[path
=
"redox.rs"
]
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
MON_NAMES
:
[
&
str
;
12
]
=
[
Loading