aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/utils.c
diff options
context:
space:
mode:
authorWei Tang <tangwei@cmss.chinamobile.com>2016-06-27 06:12:46 -0400
committerDavid S. Miller <davem@davemloft.net>2016-06-29 05:15:14 -0400
commit8a01ed70ebe4ddf37a759e8e9b4e8e71fb26b47c (patch)
treeb55ff9ed6f4307dd0724c7a79106083e7e6fa700 /net/core/utils.c
parent5eca2914f3cf787cced92e818bff5f1ac4f0a8b2 (diff)
net: the space is required before the open parenthesis '('
The space is missing before the open parenthesis '(', and this will introduce much more noise when checking patch around. Signed-off-by: Wei Tang <tangwei@cmss.chinamobile.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/utils.c')
-rw-r--r--net/core/utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/core/utils.c b/net/core/utils.c
index 3d17ca8b4744..cf5622b9ccc4 100644
--- a/net/core/utils.c
+++ b/net/core/utils.c
@@ -133,7 +133,7 @@ int in4_pton(const char *src, int srclen,
133 s = src; 133 s = src;
134 d = dbuf; 134 d = dbuf;
135 i = 0; 135 i = 0;
136 while(1) { 136 while (1) {
137 int c; 137 int c;
138 c = xdigit2bin(srclen > 0 ? *s : '\0', delim); 138 c = xdigit2bin(srclen > 0 ? *s : '\0', delim);
139 if (!(c & (IN6PTON_DIGIT | IN6PTON_DOT | IN6PTON_DELIM | IN6PTON_COLON_MASK))) { 139 if (!(c & (IN6PTON_DIGIT | IN6PTON_DOT | IN6PTON_DELIM | IN6PTON_COLON_MASK))) {
@@ -283,11 +283,11 @@ cont:
283 i = 15; d--; 283 i = 15; d--;
284 284
285 if (dc) { 285 if (dc) {
286 while(d >= dc) 286 while (d >= dc)
287 dst[i--] = *d--; 287 dst[i--] = *d--;
288 while(i >= dc - dbuf) 288 while (i >= dc - dbuf)
289 dst[i--] = 0; 289 dst[i--] = 0;
290 while(i >= 0) 290 while (i >= 0)
291 dst[i--] = *d--; 291 dst[i--] = *d--;
292 } else 292 } else
293 memcpy(dst, dbuf, sizeof(dbuf)); 293 memcpy(dst, dbuf, sizeof(dbuf));