git » nmdb » commit ebc412e

Tidy some comments.

author Alberto Bertogli
2006-09-13 05:55:48 UTC
committer Alberto Bertogli
2006-09-13 05:55:48 UTC
parent d6bfe4ad739669912e8330dcbe3a502aa1123e51

Tidy some comments.

nmdb/db.c +1 -2
nmdb/tipc.c +3 -3

diff --git a/nmdb/db.c b/nmdb/db.c
index e264ce4..0589bc2 100644
--- a/nmdb/db.c
+++ b/nmdb/db.c
@@ -2,8 +2,7 @@
 #include <pthread.h>		/* threading functions */
 #include <time.h>		/* nanosleep() */
 #include <errno.h>		/* ETIMEDOUT */
-
-#include <stdio.h>
+#include <stdio.h>		/* perror() */
 
 #include "common.h"
 #include "db.h"
diff --git a/nmdb/tipc.c b/nmdb/tipc.c
index da4731f..3a216bd 100644
--- a/nmdb/tipc.c
+++ b/nmdb/tipc.c
@@ -316,8 +316,8 @@ static void parse_msg(struct req_info *req, unsigned char *buf, size_t bsize)
 	payload = buf + 8;
 	psize = bsize - 8;
 
-	/* store the id encoded in network byte order, so that we don't have
-	 * to calculate it at send time */
+	/* Store the id encoded in network byte order, so that we don't have
+	 * to calculate it at send time. */
 	req->id = htonl(id);
 	req->cmd = cmd;
 	req->payload = payload;
@@ -458,7 +458,7 @@ static void parse_set(struct req_info *req, int impact_db, int async)
 			 * synchronous operation, asynchronous don't mind
 			 * waiting. It does have a measurable impact on
 			 * performance (2083847usec vs 2804973usec for sets on
-			 * "test2d 100000 10 10". */
+			 * "test2d 100000 10 10"). */
 			queue_signal(op_queue);
 		}
 		return;