int ch, flags, verbose;
u_int32_t flags; int ch, verbose;
main(argc, argv)	int argc;	char *argv[];{	extern char *optarg;	extern int optind;	DB_ENV *dbenv;	int ch, flags, verbose;	char *home, **list;	flags = verbose = 0;	home = NULL;	while ((ch = getopt(argc, argv, "ah:lsv")) != EOF)		switch (ch) {		case 'a':			flags |= DB_ARCH_ABS;			break;		case 'h':			home = optarg;			break;		case 'l':			flags |= DB_ARCH_LOG;			break;		case 's':			flags |= DB_ARCH_DATA;			break;		case 'v':			verbose = 1;			break;		case '?':		default:			usage();		}	argc -= optind;	argv += optind;	if (argc != 0)		usage();	/* Initialize the environment. */	dbenv = db_init(home, verbose);	/* Get the list of names. */	if ((errno = log_archive(dbenv->lg_info, &list, flags, NULL)) != 0) {		(void)db_appexit(dbenv);		err(1, "log_archive");	}	/* Print the names. */	if (list != NULL)		for (; *list != NULL; ++list)			printf("%s\n", *list);	return (db_appexit(dbenv) ? 1 : 0);}