summaryrefslogtreecommitdiffstats
path: root/uint16_unpack.c
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-12-06 01:39:33 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-12-06 01:39:33 +0100
commit6533e74370acfa51653608b1dc5e1292c72970c9 (patch)
treedbd3b13cb10df6f341a82a5a449fcf5a4b9d9b66 /uint16_unpack.c
parenta583bb24fb23728c9c4ed6c6c573d526ab654c49 (diff)
downloadcrypto-6533e74370acfa51653608b1dc5e1292c72970c9.zip
crypto-6533e74370acfa51653608b1dc5e1292c72970c9.tar.gz
remove extra spaces
Diffstat (limited to 'uint16_unpack.c')
-rw-r--r--uint16_unpack.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/uint16_unpack.c b/uint16_unpack.c
index 3821853..9b04821 100644
--- a/uint16_unpack.c
+++ b/uint16_unpack.c
@@ -3,19 +3,19 @@
__inline void u16_unpack(const char s[2],u16 *u)
{
u16 result;
-
+
result = (unsigned char) s[1]; result <<= 8;
result += (unsigned char) s[0];
-
+
*u = result;
}
__inline void u16_unpack_big(const char s[2],u16 *u)
{
u16 result;
-
+
result = (unsigned char) s[0]; result <<= 8;
result += (unsigned char) s[1];
-
+
*u = result;
}