From: Harlan Stenn Date: Wed, 21 Jun 2006 07:52:10 +0000 (-0400) Subject: Use a pointer to feed the options to optionUsage() to avoid a struct copy X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f5fc718338c63a545ebfdc32ffd83ba09adee59;p=thirdparty%2Fntp.git Use a pointer to feed the options to optionUsage() to avoid a struct copy bk: 4498faaabajw265pt6Eps1O2GWmm0g --- diff --git a/ntpd/cmd_args.c b/ntpd/cmd_args.c index 9f2af3aeac..e3442ad98e 100644 --- a/ntpd/cmd_args.c +++ b/ntpd/cmd_args.c @@ -185,11 +185,11 @@ getCmdOpts( { extern const char *config_file; int errflg; - tOptions myOptions = + tOptions *myOptions = #ifdef SIM - ntpdsimOptions + &ntpdsimOptions #else - ntpdOptions + &ntpdOptions #endif ; @@ -377,7 +377,7 @@ getCmdOpts( if (errflg || argc) { printf("argc is <%d>\n", argc); - optionUsage(&myOptions, 2); + optionUsage(myOptions, 2); } return; }