diff --git a/contrib/ldaptcl/tclAppInit.c b/contrib/ldaptcl/tclAppInit.c index f84e1826f2..d50a7244d8 100644 --- a/contrib/ldaptcl/tclAppInit.c +++ b/contrib/ldaptcl/tclAppInit.c @@ -45,9 +45,7 @@ EXTERN int Tcltest_Init _ANSI_ARGS_((Tcl_Interp *interp)); */ int -main(argc, argv) - int argc; /* Number of command-line arguments. */ - char **argv; /* Values of command-line arguments. */ +main(int argc, char **argv) { #ifdef USE_TCLX TclX_Main(argc, argv, Tcl_AppInit); diff --git a/contrib/ldaptcl/tkAppInit.c b/contrib/ldaptcl/tkAppInit.c index 68fd956803..693452335c 100644 --- a/contrib/ldaptcl/tkAppInit.c +++ b/contrib/ldaptcl/tkAppInit.c @@ -37,16 +37,9 @@ int (*tclDummyMathPtr)() = matherr; * This is the main program for the application. *----------------------------------------------------------------------------- */ -#ifdef __cplusplus int main (int argc, char **argv) -#else -int -main (argc, argv) - int argc; - char **argv; -#endif { #ifdef USE_TCLX TkX_Main(argc, argv, Tcl_AppInit); @@ -68,14 +61,8 @@ main (argc, argv) * interp->result if an error occurs. *----------------------------------------------------------------------------- */ -#ifdef __cplusplus int Tcl_AppInit (Tcl_Interp *interp) -#else -int -Tcl_AppInit (interp) - Tcl_Interp *interp; -#endif { if (Tcl_Init (interp) == TCL_ERROR) { return TCL_ERROR;