Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
f356f1bb
Commit
f356f1bb
authored
Jun 27, 2000
by
Brian Wellington
Browse files
style changes
parent
db118c5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/lwres/lwinetaton.c
View file @
f356f1bb
...
...
@@ -70,7 +70,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
static
char
sccsid
[]
=
"@(#)inet_addr.c 8.1 (Berkeley) 6/17/93"
;
static
char
rcsid
[]
=
"$Id: lwinetaton.c,v 1.
5
2000/06/2
1 22:20:14 tale
Exp $"
;
static
char
rcsid
[]
=
"$Id: lwinetaton.c,v 1.
6
2000/06/2
7 18:02:12 bwelling
Exp $"
;
#endif
/* LIBC_SCCS and not lint */
#include
<config.h>
...
...
@@ -98,6 +98,8 @@ lwres_net_aton(const char *cp, struct in_addr *addr) {
lwres_uint8_t
*
pp
=
parts
;
int
digit
;
REQUIRE
(
cp
!=
NULL
);
c
=
*
cp
;
for
(;;)
{
/*
...
...
@@ -107,14 +109,17 @@ lwres_net_aton(const char *cp, struct in_addr *addr) {
*/
if
(
!
isdigit
(
c
&
0xff
))
return
(
0
);
val
=
0
;
base
=
10
;
digit
=
0
;
val
=
0
;
base
=
10
;
digit
=
0
;
if
(
c
==
'0'
)
{
c
=
*++
cp
;
if
(
c
==
'x'
||
c
==
'X'
)
base
=
16
,
c
=
*++
cp
;
else
{
if
(
c
==
'x'
||
c
==
'X'
)
{
base
=
16
;
c
=
*++
cp
;
}
else
{
base
=
8
;
digit
=
1
;
digit
=
1
;
}
}
for
(;;)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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