trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject git commit: TS-2611 Fix getopt usage for OmniOS
Date Wed, 05 Mar 2014 05:52:41 GMT
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 <zwoop@apache.org>
Authored: Wed Mar 5 05:52:28 2014 +0000
Committer: Leif Hedstrom <zwoop@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' }
   };
 


Mime
View raw message