diff options
Diffstat (limited to 'distrib/crunch/crunchgen/crunched_main.c')
-rw-r--r-- | distrib/crunch/crunchgen/crunched_main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/distrib/crunch/crunchgen/crunched_main.c b/distrib/crunch/crunchgen/crunched_main.c index 3e893960d3f..a4aa819b009 100644 --- a/distrib/crunch/crunchgen/crunched_main.c +++ b/distrib/crunch/crunchgen/crunched_main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crunched_main.c,v 1.2 2000/03/01 22:10:03 todd Exp $ */ +/* $OpenBSD: crunched_main.c,v 1.3 2001/12/28 00:03:23 angelos Exp $ */ /* * Copyright (c) 1994 University of Maryland @@ -43,7 +43,7 @@ struct stub { extern struct stub entry_points[]; -int main(int argc, char **argv) +int main(int argc, char **argv, char **envp) { char *slash, *basename; struct stub *ep; @@ -58,7 +58,7 @@ int main(int argc, char **argv) if(!strcmp(basename, ep->name)) break; if(ep->name) - return ep->f(argc, argv); + return ep->f(argc, argv, envp); else { fprintf(stderr, "%s: %s not compiled in\n", EXECNAME, basename); crunched_usage(); @@ -66,7 +66,7 @@ int main(int argc, char **argv) } -int crunched_main(int argc, char **argv) +int crunched_main(int argc, char **argv, char **envp) { struct stub *ep; int columns, len; @@ -74,7 +74,7 @@ int crunched_main(int argc, char **argv) if(argc <= 1) crunched_usage(); - return main(--argc, ++argv); + return main(--argc, ++argv, envp); } |