source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Revert to mandocdb.{index,db} for database files.
@ 2012-03-23  2:52 kristaps
  0 siblings, 0 replies; only message in thread
From: kristaps @ 2012-03-23  2:52 UTC (permalink / raw)
  To: source

Log Message:
-----------
Revert to mandocdb.{index,db} for database files.

Modified Files:
--------------
    mdocml:
        apropos.c
        mandocdb.h

Revision Data
-------------
Index: mandocdb.h
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mandocdb.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -Lmandocdb.h -Lmandocdb.h -u -p -r1.5 -r1.6
--- mandocdb.h
+++ mandocdb.h
@@ -17,8 +17,8 @@
 #ifndef MANDOCDB_H
 #define MANDOCDB_H
 
-#define	MANDOC_DB	"whatis.db"
-#define	MANDOC_IDX	"whatis.index"
+#define	MANDOC_DB	"mandocdb.db"
+#define	MANDOC_IDX	"mandocdb.index"
 
 #define	TYPE_An		0x0000000000000001ULL
 #define	TYPE_Ar		0x0000000000000002ULL
Index: apropos.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/apropos.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -Lapropos.c -Lapropos.c -u -p -r1.25 -r1.26
--- apropos.c
+++ apropos.c
@@ -122,12 +122,13 @@ out:
 static void
 list(struct res *res, size_t sz, void *arg)
 {
-	int		 i;
+	size_t		 i;
 
 	qsort(res, sz, sizeof(struct res), cmp);
 
-	for (i = 0; i < (int)sz; i++)
-		printf("%s(%s%s%s) - %.70s\n", res[i].title,
+	for (i = 0; i < sz; i++)
+		printf("%s(%s%s%s) - %.70s\n", 
+				res[i].title,
 				res[i].cat,
 				*res[i].arch ? "/" : "",
 				*res[i].arch ? res[i].arch : "",
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-03-23  2:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-23  2:52 mdocml: Revert to mandocdb.{index,db} for database files kristaps

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).