summaryrefslogtreecommitdiffstats
path: root/src/kernel/utils.c
diff options
context:
space:
mode:
authorJohann Latocha2012-01-30 22:15:44 +0100
committerJohann Latocha2012-01-30 22:15:44 +0100
commit1dc88febdcb2a1d09dfca592bb47106512526b29 (patch)
tree8fc188c761ec13d6fa96f206ee3c00117a8204d2 /src/kernel/utils.c
parent[SERVER] Timeout for client sockets (diff)
downloaddnbd3-1dc88febdcb2a1d09dfca592bb47106512526b29.tar.gz
dnbd3-1dc88febdcb2a1d09dfca592bb47106512526b29.tar.xz
dnbd3-1dc88febdcb2a1d09dfca592bb47106512526b29.zip
[ALL] Reformat (line wrapping, indent)
Diffstat (limited to 'src/kernel/utils.c')
-rw-r--r--src/kernel/utils.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/kernel/utils.c b/src/kernel/utils.c
index 423ceb9..85c0ce0 100644
--- a/src/kernel/utils.c
+++ b/src/kernel/utils.c
@@ -22,12 +22,12 @@
unsigned int inet_addr(char *str)
{
- int a, b, c, d;
- char arr[4];
- sscanf(str, "%d.%d.%d.%d", &a, &b, &c, &d);
- arr[0] = a;
- arr[1] = b;
- arr[2] = c;
- arr[3] = d;
- return *(unsigned int*) arr;
+ int a, b, c, d;
+ char arr[4];
+ sscanf(str, "%d.%d.%d.%d", &a, &b, &c, &d);
+ arr[0] = a;
+ arr[1] = b;
+ arr[2] = c;
+ arr[3] = d;
+ return *(unsigned int*) arr;
}