summaryrefslogtreecommitdiffstats
path: root/server/.svn/text-base/cdb_unpack.c.svn-base
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2008-04-14 21:52:55 -0400
committerBrian Cully <github.20.shmit@spamgourmet.com>2008-04-14 21:52:55 -0400
commit6ba98a9f9f48e13738d9736cba9c45b5e94f42f2 (patch)
tree86d7c281bcdbf67eb53cee064aa905e740ec5ccf /server/.svn/text-base/cdb_unpack.c.svn-base
downloadnastd-6ba98a9f9f48e13738d9736cba9c45b5e94f42f2.tar.gz
nastd-6ba98a9f9f48e13738d9736cba9c45b5e94f42f2.zip
Initial import
Diffstat (limited to 'server/.svn/text-base/cdb_unpack.c.svn-base')
-rw-r--r--server/.svn/text-base/cdb_unpack.c.svn-base16
1 files changed, 16 insertions, 0 deletions
diff --git a/server/.svn/text-base/cdb_unpack.c.svn-base b/server/.svn/text-base/cdb_unpack.c.svn-base
new file mode 100644
index 0000000..14a71b9
--- /dev/null
+++ b/server/.svn/text-base/cdb_unpack.c.svn-base
@@ -0,0 +1,16 @@
+#include "conf.h"
+#include "cdbpriv.h"
+
+RCSID("$Id: cdb_unpack.c,v 1.2 2000/02/29 19:31:33 shmit Exp $");
+
+uint32_t
+cdb_unpack(unsigned char *buf)
+{
+ uint32_t num;
+
+ num = buf[3]; num <<= 8;
+ num += buf[2]; num <<= 8;
+ num += buf[1]; num <<= 8;
+ num += buf[0];
+ return num;
+}