You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2015/08/06 04:56:36 UTC

trafficserver git commit: TS-3825 epic plugin does not compile on OmniOS

Repository: trafficserver
Updated Branches:
  refs/heads/master 0c28aa665 -> 4019b9708


TS-3825 epic plugin does not compile on OmniOS


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/4019b970
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/4019b970
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/4019b970

Branch: refs/heads/master
Commit: 4019b970816f33716943e6a38fb4c9b2d70c8bfe
Parents: 0c28aa6
Author: Leif Hedstrom <zw...@apache.org>
Authored: Wed Aug 5 20:50:32 2015 -0600
Committer: Leif Hedstrom <zw...@apache.org>
Committed: Wed Aug 5 20:50:32 2015 -0600

----------------------------------------------------------------------
 plugins/experimental/epic/epic.cc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/4019b970/plugins/experimental/epic/epic.cc
----------------------------------------------------------------------
diff --git a/plugins/experimental/epic/epic.cc b/plugins/experimental/epic/epic.cc
index 6f6abff..8f4c738 100644
--- a/plugins/experimental/epic/epic.cc
+++ b/plugins/experimental/epic/epic.cc
@@ -301,8 +301,9 @@ epic_flush_stats(TSCont /* contp */, TSEvent /* event */, void * /* edata */)
 void
 TSPluginInit(int argc, const char *argv[])
 {
-  static const struct option longopts[] = {
-    {"directory", required_argument, NULL, 'd'}, {"period", required_argument, NULL, 'p'}, {NULL, 0, NULL, 0}};
+  static const struct option longopts[] = {{const_cast<char *>("directory"), required_argument, NULL, 'd'},
+                                           {const_cast<char *>("period"), required_argument, NULL, 'p'},
+                                           {NULL, 0, NULL, 0}};
 
   TSPluginRegistrationInfo info;