git » nmdb » commit a25933b

Make req.cmd be 16 bits wide instead of 32

author Alberto Bertogli
2008-12-05 00:53:48 UTC
committer Alberto Bertogli
2008-12-05 00:53:48 UTC
parent 788a49b302b91b3f3d8e57eb515b4f9d21ef66f7

Make req.cmd be 16 bits wide instead of 32

It's 16 bits wide on the network, and the code properly assumes so.
There's no need for it to take 32 bits in the structure (and it's
misleading too).

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>

nmdb/req.h +1 -1

diff --git a/nmdb/req.h b/nmdb/req.h
index 557f44c..3660d86 100644
--- a/nmdb/req.h
+++ b/nmdb/req.h
@@ -24,7 +24,7 @@ struct req_info {
 
 	/* operation information */
 	uint32_t id;
-	uint32_t cmd;
+	uint16_t cmd;
 	uint16_t flags;
 	const unsigned char *payload;
 	size_t psize;