]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Use a pointer to feed the options to optionUsage() to avoid a struct copy
authorHarlan Stenn <stenn@ntp.org>
Wed, 21 Jun 2006 07:52:10 +0000 (03:52 -0400)
committerHarlan Stenn <stenn@ntp.org>
Wed, 21 Jun 2006 07:52:10 +0000 (03:52 -0400)
bk: 4498faaabajw265pt6Eps1O2GWmm0g

ntpd/cmd_args.c

index 9f2af3aeac2ba01d2ca707db5e38e9e3e22a3905..e3442ad98e292844f0918b6fd7066dfc947ad015 100644 (file)
@@ -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;
 }