Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Aug 2002 19:19:23 +0100
From:      "Peter Edwards" <pmedwards@eircom.net>
To:        current@freebsd.org
Subject:   src/usr.sbin/crunch/crunchgen/crunched_main.c
Message-ID:  <20020808181924.CAFF243E77@mx1.FreeBSD.org>

next in thread | raw e-mail | index | archive | help
Hi,

The last commit to this appears to have broken it. "main()" was updated to
include envp, but "crunched_main()" calls "main()" without the extra argument.

This causes make release of -current on -stable to barf for me, so I can't
truly test the patch without waiting about 8 hours, other than to say making
the modifications to the generated file does at least allow it to compile.



Cheers,
Peter.

Index: src/usr.sbin/crunch/crunchgen/crunched_main.c
===================================================================
RCS file: /pub/FreeBSD/development/FreeBSD-CVS//src/usr.sbin/crunch/crunchgen/crunched_main.c,v
retrieving revision 1.7
diff -u -r1.7 crunched_main.c
--- src/usr.sbin/crunch/crunchgen/crunched_main.c       4 Aug 2002 22:14:44 -0000       1.7
+++ src/usr.sbin/crunch/crunchgen/crunched_main.c       8 Aug 2002 18:15:38 -0000
@@ -81,7 +81,7 @@
 }
 
 
-int crunched_main(int argc, char **argv)
+int crunched_main(int argc, char **argv, char **envp)
 {
     struct stub *ep;
     int columns, len;
@@ -89,7 +89,7 @@
     if(argc <= 1)
        crunched_usage();
 
-    return main(--argc, ++argv);
+    return main(--argc, ++argv, envp);
 }


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020808181924.CAFF243E77>