summaryrefslogtreecommitdiffstats
path: root/server/cdb_unpack.c
blob: 14a71b955e71a8cda3f6c79a6b60ef31c4307132 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;
}