Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
Dnsmasq
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Dnsmasq
Commits
4f9aefc7
Commit
4f9aefc7
authored
May 03, 2012
by
Simon Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't fight over namespace with re-implementation of strchrnul()
parent
4b528700
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/dnssec.c
src/dnssec.c
+2
-2
No files found.
src/dnssec.c
View file @
4f9aefc7
...
@@ -404,7 +404,7 @@ typedef struct PendingRRSIGValidation
...
@@ -404,7 +404,7 @@ typedef struct PendingRRSIGValidation
This is an existing C GNU extension, but it's easier to reimplement it,
This is an existing C GNU extension, but it's easier to reimplement it,
rather than tweaking with configure. */
rather than tweaking with configure. */
static
char
*
strchrnul
(
char
*
str
,
char
ch
)
static
char
*
my_
strchrnul
(
char
*
str
,
char
ch
)
{
{
while
(
*
str
&&
*
str
!=
ch
)
while
(
*
str
&&
*
str
!=
ch
)
str
++
;
str
++
;
...
@@ -420,7 +420,7 @@ static int convert_domain_to_wire(char *name, unsigned char* out)
...
@@ -420,7 +420,7 @@ static int convert_domain_to_wire(char *name, unsigned char* out)
do
do
{
{
p
=
strchrnul
(
name
,
'.'
);
p
=
my_
strchrnul
(
name
,
'.'
);
if
((
len
=
p
-
name
))
if
((
len
=
p
-
name
))
{
{
*
out
++
=
len
;
*
out
++
=
len
;
...
...
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