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 2014/03/05 06:52:41 UTC

git commit: TS-2611 Fix getopt usage for OmniOS

Repository: trafficserver
Updated Branches:
  refs/heads/master ff57da9cf -> 15e2bbd28


TS-2611 Fix getopt usage for OmniOS


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

Branch: refs/heads/master
Commit: 15e2bbd2810b8cad9984c1a588ce14cdb025ce40
Parents: ff57da9
Author: Leif Hedstrom <zw...@apache.org>
Authored: Wed Mar 5 05:52:28 2014 +0000
Committer: Leif Hedstrom <zw...@apache.org>
Committed: Wed Mar 5 05:52:33 2014 +0000

----------------------------------------------------------------------
 plugins/experimental/s3_auth/s3_auth.cc | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/15e2bbd2/plugins/experimental/s3_auth/s3_auth.cc
----------------------------------------------------------------------
diff --git a/plugins/experimental/s3_auth/s3_auth.cc b/plugins/experimental/s3_auth/s3_auth.cc
index 9f3476b..c5ec0cc 100644
--- a/plugins/experimental/s3_auth/s3_auth.cc
+++ b/plugins/experimental/s3_auth/s3_auth.cc
@@ -418,11 +418,11 @@ TSReturnCode
 TSRemapNewInstance(int argc, char* argv[], void** ih, char* /* errbuf ATS_UNUSED */, int /* errbuf_size ATS_UNUSED */)
 {
   static const struct option longopt[] = {
-    { "access_key", required_argument, NULL, 'a' },
-    { "config", required_argument, NULL, 'c' },
-    { "secret_key", required_argument, NULL, 's' },
-    { "version", required_argument, NULL, 'v' },
-    { "virtual_host", no_argument, NULL, 'h' },
+    { const_cast<char *>("access_key"), required_argument, NULL, 'a' },
+    { const_cast<char *>("config"), required_argument, NULL, 'c' },
+    { const_cast<char *>("secret_key"), required_argument, NULL, 's' },
+    { const_cast<char *>("version"), required_argument, NULL, 'v' },
+    { const_cast<char *>("virtual_host"), no_argument, NULL, 'h' },
     {NULL, no_argument, NULL, '\0' }
   };