trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpe...@apache.org
Subject git commit: Fix unused variable warnings in secure-link example
Date Wed, 26 Feb 2014 00:43:07 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master 4e4518cd5 -> ee3ab6533


Fix unused variable warnings in secure-link example


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

Branch: refs/heads/master
Commit: ee3ab6533cf7dc6b856bec13b8bc6a7d706f4708
Parents: 4e4518c
Author: James Peach <jpeach@apache.org>
Authored: Tue Feb 25 16:42:42 2014 -0800
Committer: James Peach <jpeach@apache.org>
Committed: Tue Feb 25 16:42:59 2014 -0800

----------------------------------------------------------------------
 example/secure-link/secure-link.c | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/ee3ab653/example/secure-link/secure-link.c
----------------------------------------------------------------------
diff --git a/example/secure-link/secure-link.c b/example/secure-link/secure-link.c
index 67a75b3..cefc74f 100644
--- a/example/secure-link/secure-link.c
+++ b/example/secure-link/secure-link.c
@@ -146,6 +146,10 @@ TSRemapNewInstance(int argc, char **argv, void **ih, char *errbuf, int
errbuf_si
   char *ptr;
   secure_link_info *sli;
 
+  // squash unused variable warnings ...
+  (void)errbuf;
+  (void)errbuf_size;
+
   sli = (secure_link_info *)TSmalloc(sizeof(secure_link_info));
   sli->secret = NULL;
   sli->strict = 0;
@@ -188,5 +192,10 @@ TSRemapDeleteInstance(void *ih)
 TSReturnCode
 TSRemapInit(TSRemapInterface *api_info, char *errbuf, int errbuf_size)
 {
+  // squash unused variable warnings ...
+  (void)api_info;
+  (void)errbuf;
+  (void)errbuf_size;
+
   return TS_SUCCESS;
 }


Mime
View raw message