You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by jp...@apache.org on 2016/04/24 02:26:53 UTC

[trafficserver] branch master updated: Fix stats_over_http argument parsing.

This is an automated email from the ASF dual-hosted git repository.

jpeach pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

The following commit(s) were added to refs/heads/master by this push:
       new  01bd79c   Fix stats_over_http argument parsing.
01bd79c is described below

commit 01bd79c02932882b7c16b9185feea38eec643316
Author: James Peach <jp...@apache.org>
AuthorDate: Sat Apr 23 17:25:50 2016 -0700

    Fix stats_over_http argument parsing.
    
    The stats_over_http plugin only has boolean flag options, but we
    were specifying that arguments were required. This misparses the
    options and prevents them from being enabled.
---
 plugins/stats_over_http/stats_over_http.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/stats_over_http/stats_over_http.c b/plugins/stats_over_http/stats_over_http.c
index bf90a53..f45af7c 100644
--- a/plugins/stats_over_http/stats_over_http.c
+++ b/plugins/stats_over_http/stats_over_http.c
@@ -287,8 +287,8 @@ TSPluginInit(int argc, const char *argv[])
   TSPluginRegistrationInfo info;
 
   static const char usage[] = PLUGIN_NAME ".so [--integer-counters] [PATH]";
-  static const struct option longopts[] = {{(char *)("integer-counters"), required_argument, NULL, 'i'},
-                                           {(char *)("wrap-counters"), required_argument, NULL, 'w'},
+  static const struct option longopts[] = {{(char *)("integer-counters"), no_argument, NULL, 'i'},
+                                           {(char *)("wrap-counters"), no_argument, NULL, 'w'},
                                            {NULL, 0, NULL, 0}};
 
   info.plugin_name = PLUGIN_NAME;

-- 
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].