aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/utils.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-25 17:09:50 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-25 17:09:50 +0100
commit8effd39a5089544afc9489668c78a3d5b254de5b (patch)
treeeb1dd3c835e3a6d87c858c9e0a1c1c9607b1a4c6 /FICS/utils.c
parentab69e22f688ed0f0ceaddfb40a3958cfa44e1485 (diff)
Reformatted dotQuad()
Diffstat (limited to 'FICS/utils.c')
-rw-r--r--FICS/utils.c25
1 files changed, 13 insertions, 12 deletions
diff --git a/FICS/utils.c b/FICS/utils.c
index 9c62696..5f53477 100644
--- a/FICS/utils.c
+++ b/FICS/utils.c
@@ -800,20 +800,21 @@ PUBLIC char *file_bplayer(char *fname)
return ptr + 1;
}
-
-/* Hey, leave this code alone. "a" is always in network byte order,
- which is big-endian, even on a little-endian machine. I fixed this
- code to handle that correctly a while ago, and someone
- gratuitiously changed it so that it would work correctly only on a
- big-endian machine (like a Sun). I have now changed it back. --mann
-*/
-PUBLIC char *dotQuad(unsigned int a)
+/*
+ * Hey, leave this code alone. 'a' is always in network byte order,
+ * which is big-endian, even on a little-endian machine. I fixed this
+ * code to handle that correctly a while ago and someone gratuitously
+ * changed it so that it would work correctly only on a big-endian
+ * machine (like a Sun). I have now changed it back. --mann
+ */
+PUBLIC char *
+dotQuad(unsigned int a)
{
- static char tmp[20];
- unsigned char *aa = (unsigned char *) &a;
+ static char tmp[20];
+ unsigned char *aa = (unsigned char *) &a;
- sprintf(tmp, "%d.%d.%d.%d", aa[0], aa[1], aa[2], aa[3]);
- return tmp;
+ sprintf(tmp, "%d.%d.%d.%d", aa[0], aa[1], aa[2], aa[3]);
+ return tmp;
}
PUBLIC int