X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/b55540f69066f9127c964af2097b7563ab69369c..578a86d91941a0f722b87973d88e84ec2cf9a608:/mkphrase.c diff --git a/mkphrase.c b/mkphrase.c index f315108..3954418 100644 --- a/mkphrase.c +++ b/mkphrase.c @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: mkphrase.c,v 1.1 2000/08/06 10:50:55 mdw Exp $ + * $Id: mkphrase.c,v 1.4 2004/04/08 01:36:15 mdw Exp $ * * Generate passphrases from word lists * @@ -27,15 +27,6 @@ * MA 02111-1307, USA. */ -/*----- Revision history --------------------------------------------------* - * - * $Log: mkphrase.c,v $ - * Revision 1.1 2000/08/06 10:50:55 mdw - * (mkphrase): New program for generating random passphrases with measured - * strength. - * - */ - /*----- Header files ------------------------------------------------------*/ #include "config.h" @@ -321,10 +312,8 @@ int main(int argc, char *argv[]) dstr dd = DSTR_INIT; unsigned i; - enum { - f_bogus = 1, - f_showp = 2 - }; +#define f_bogus 1u +#define f_showp 2u ego(argv[0]); for (;;) { @@ -418,7 +407,7 @@ int main(int argc, char *argv[]) ctx = ops->init(); while (*argv) { if (strcmp(*argv, "-") == 0) - ops->scan(ctx, stdin); + ops->scan(stdin, ctx); else { FILE *fp = fopen(*argv, "r"); if (!fp) {