trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject [11/14] trafficserver git commit: TS-3825 epic plugin does not compile on OmniOS
Date Thu, 06 Aug 2015 04:06:47 GMT
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/6.0.x
Commit: 4019b970816f33716943e6a38fb4c9b2d70c8bfe
Parents: 0c28aa6
Author: Leif Hedstrom <zwoop@apache.org>
Authored: Wed Aug 5 20:50:32 2015 -0600
Committer: Leif Hedstrom <zwoop@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;
 


Mime
View raw message