Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41980
b: refs/heads/master
c: 9a7c933
h: refs/heads/master
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Dec 3, 2006
1 parent d9fc8b6 commit c66085a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a163148c1bec895c1332ea5be497bcda8ce110df
refs/heads/master: 9a7c9337a09b1ef07e55f95a4309957a2328a01f
4 changes: 2 additions & 2 deletions trunk/include/linux/inet.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
#include <linux/types.h>

extern __be32 in_aton(const char *str);
extern int in4_pton(const char *src, int srclen, u8 *dst, char delim, const char **end);
extern int in6_pton(const char *src, int srclen, u8 *dst, char delim, const char **end);
extern int in4_pton(const char *src, int srclen, u8 *dst, int delim, const char **end);
extern int in6_pton(const char *src, int srclen, u8 *dst, int delim, const char **end);
#endif
#endif /* _LINUX_INET_H */
10 changes: 6 additions & 4 deletions trunk/net/core/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ EXPORT_SYMBOL(in_aton);
#define IN6PTON_NULL 0x20000000 /* first/tail */
#define IN6PTON_UNKNOWN 0x40000000

static inline int digit2bin(char c, char delim)
static inline int digit2bin(char c, int delim)
{
if (c == delim || c == '\0')
return IN6PTON_DELIM;
Expand All @@ -99,7 +99,7 @@ static inline int digit2bin(char c, char delim)
return IN6PTON_UNKNOWN;
}

static inline int xdigit2bin(char c, char delim)
static inline int xdigit2bin(char c, int delim)
{
if (c == delim || c == '\0')
return IN6PTON_DELIM;
Expand All @@ -113,12 +113,14 @@ static inline int xdigit2bin(char c, char delim)
return (IN6PTON_XDIGIT | (c - 'a' + 10));
if (c >= 'A' && c <= 'F')
return (IN6PTON_XDIGIT | (c - 'A' + 10));
if (delim == -1)
return IN6PTON_DELIM;
return IN6PTON_UNKNOWN;
}

int in4_pton(const char *src, int srclen,
u8 *dst,
char delim, const char **end)
int delim, const char **end)
{
const char *s;
u8 *d;
Expand Down Expand Up @@ -173,7 +175,7 @@ EXPORT_SYMBOL(in4_pton);

int in6_pton(const char *src, int srclen,
u8 *dst,
char delim, const char **end)
int delim, const char **end)
{
const char *s, *tok = NULL;
u8 *d, *dc = NULL;
Expand Down

0 comments on commit c66085a

Please sign in to comment.