Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
237657f4
Commit
237657f4
authored
Apr 05, 2020
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
map: use GIT_ASSERT
parent
23e38fd3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/map.h
+3
-3
No files found.
src/map.h
View file @
237657f4
...
...
@@ -36,9 +36,9 @@ typedef struct { /* memory mapped buffer */
}
git_map
;
#define GIT_MMAP_VALIDATE(out, len, prot, flags) do { \
assert
(out != NULL && len > 0); \
assert
((prot & GIT_PROT_WRITE) || (prot & GIT_PROT_READ)); \
assert
((flags & GIT_MAP_FIXED) == 0); } while (0)
GIT_ASSERT
(out != NULL && len > 0); \
GIT_ASSERT
((prot & GIT_PROT_WRITE) || (prot & GIT_PROT_READ)); \
GIT_ASSERT
((flags & GIT_MAP_FIXED) == 0); } while (0)
extern
int
p_mmap
(
git_map
*
out
,
size_t
len
,
int
prot
,
int
flags
,
int
fd
,
off64_t
offset
);
extern
int
p_munmap
(
git_map
*
map
);
...
...
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