Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
22b0bb5a
Commit
22b0bb5a
authored
Sep 03, 2009
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: ut_align(): Make ptr const, like in ut_align_down().
parent
a9458f49
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
include/ut0byte.h
include/ut0byte.h
+2
-2
include/ut0byte.ic
include/ut0byte.ic
+2
-2
No files found.
include/ut0byte.h
View file @
22b0bb5a
...
@@ -219,7 +219,7 @@ UNIV_INLINE
...
@@ -219,7 +219,7 @@ UNIV_INLINE
void
*
void
*
ut_align
(
ut_align
(
/*=====*/
/*=====*/
void
*
ptr
,
/*!< in: pointer */
const
void
*
ptr
,
/*!< in: pointer */
ulint
align_no
);
/*!< in: align by this number */
ulint
align_no
);
/*!< in: align by this number */
/*********************************************************//**
/*********************************************************//**
The following function rounds down a pointer to the nearest
The following function rounds down a pointer to the nearest
...
...
include/ut0byte.ic
View file @
22b0bb5a
...
@@ -319,7 +319,7 @@ UNIV_INLINE
...
@@ -319,7 +319,7 @@ UNIV_INLINE
void*
void*
ut_align(
ut_align(
/*=====*/
/*=====*/
void* ptr, /*!< in: pointer */
const
void* ptr, /*!< in: pointer */
ulint align_no) /*!< in: align by this number */
ulint align_no) /*!< in: align by this number */
{
{
ut_ad(align_no > 0);
ut_ad(align_no > 0);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment