Repository: trafficserver
Updated Branches:
  refs/heads/5.3.x 62f1753fa -> b77fff574


TS-3825 epic plugin does not compile on OmniOS

(cherry picked from commit 4019b970816f33716943e6a38fb4c9b2d70c8bfe)


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

Branch: refs/heads/5.3.x
Commit: 9f213dc4834467e74e7232d80cbba5f209dd69ec
Parents: 62f1753
Author: Leif Hedstrom <[email protected]>
Authored: Wed Aug 5 20:50:32 2015 -0600
Committer: Phil Sorber <[email protected]>
Committed: Wed Sep 2 10:49:08 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/9f213dc4/plugins/experimental/epic/epic.cc
----------------------------------------------------------------------
diff --git a/plugins/experimental/epic/epic.cc 
b/plugins/experimental/epic/epic.cc
index 291502e..990a2c9 100644
--- a/plugins/experimental/epic/epic.cc
+++ b/plugins/experimental/epic/epic.cc
@@ -300,8 +300,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;
 

Reply via email to