Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Knot DNS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
24
Issues
24
List
Boards
Labels
Milestones
Merge Requests
7
Merge Requests
7
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Knot projects
Knot DNS
Commits
fc40bf4d
Commit
fc40bf4d
authored
Jun 30, 2016
by
Daniel Salzman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contrib: revert strtonum warning fix (caused by ccache+clang)
parent
b83e4936
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
src/contrib/strtonum.h
src/contrib/strtonum.h
+1
-4
No files found.
src/contrib/strtonum.h
View file @
fc40bf4d
...
...
@@ -75,16 +75,13 @@ inline static int uintmax_from_str(const char *src, uintmax_t *dest)
if (result != KNOT_EOK) { \
return result; \
} \
if (
CHECK_MIN_##min(value,
min) || value > (max)) { \
if (
value < (
min) || value > (max)) { \
return KNOT_ERANGE; \
} \
*dest = (type)value; \
return KNOT_EOK; \
}
#define CHECK_MIN_0(value, min) 0
#define CHECK_MIN_INT_MIN(value, min) (value) < (min)
inline
static
int
str_to_int
(
const
char
*
src
,
int
*
dest
)
{
CONVERT
(
int
,
int
,
INT_MIN
,
INT_MAX
,
src
,
dest
);
...
...
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