Add missing static keywords to cap_mkdb(1)

This commit is contained in:
ed 2011-11-06 08:14:03 +00:00
parent 4704a8332d
commit 1f7f99bbde

View File

@ -53,15 +53,15 @@ __FBSDID("$FreeBSD$");
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
void db_build(char **); static void db_build(char **);
void dounlink(void); static void dounlink(void);
void usage(void); static void usage(void);
DB *capdbp; static DB *capdbp;
int verbose; static int verbose;
char *capdb, *capname, buf[8 * 1024]; static char *capname, buf[8 * 1024];
HASHINFO openinfo = { static HASHINFO openinfo = {
4096, /* bsize */ 4096, /* bsize */
0, /* ffactor */ 0, /* ffactor */
0, /* nelem */ 0, /* nelem */
@ -134,7 +134,7 @@ main(int argc, char *argv[])
exit(0); exit(0);
} }
void static void
dounlink(void) dounlink(void)
{ {
if (capname != NULL) if (capname != NULL)
@ -153,7 +153,7 @@ dounlink(void)
* Db_build() builds the name and capability databases according to the * Db_build() builds the name and capability databases according to the
* details above. * details above.
*/ */
void static void
db_build(char **ifiles) db_build(char **ifiles)
{ {
DBT key, data; DBT key, data;
@ -259,7 +259,7 @@ db_build(char **ifiles)
(void)printf("cap_mkdb: %d capability records\n", reccnt); (void)printf("cap_mkdb: %d capability records\n", reccnt);
} }
void static void
usage(void) usage(void)
{ {
(void)fprintf(stderr, (void)fprintf(stderr,