projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Uppercase metasyntactic variables in usage message.
[u/mdw/catacomb]
/
mkphrase.c
diff --git
a/mkphrase.c
b/mkphrase.c
index
f315108
..
3954418
100644
(file)
--- a/
mkphrase.c
+++ b/
mkphrase.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: mkphrase.c,v 1.
1 2000/08/06 10:50:5
5 mdw Exp $
+ * $Id: mkphrase.c,v 1.
4 2004/04/08 01:36:1
5 mdw Exp $
*
* Generate passphrases from word lists
*
*
* Generate passphrases from word lists
*
@@
-27,15
+27,6
@@
* MA 02111-1307, USA.
*/
* 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"
/*----- Header files ------------------------------------------------------*/
#include "config.h"
@@
-321,10
+312,8
@@
int main(int argc, char *argv[])
dstr dd = DSTR_INIT;
unsigned i;
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 (;;) {
ego(argv[0]);
for (;;) {
@@
-418,7
+407,7
@@
int main(int argc, char *argv[])
ctx = ops->init();
while (*argv) {
if (strcmp(*argv, "-") == 0)
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) {
else {
FILE *fp = fopen(*argv, "r");
if (!fp) {